I found a sample of how to do it in VB.  Perhaps it
will help.  You'll need to download the zip and look
in the FHyper.frm file.

http://www.mvps.org/vb/code/HyperJmp.zip

>From the looks of it, he just uses a label and formats
the text in the label (underlined, blue) and then
fires off the ShellExecute API call to load the URL.

I don't have Perl on the machine I'm using so I
haven't tried to convert it to Perl syntax yet.

Thanks,
Jeremy Blonde
[EMAIL PROTECTED]

--- Sean Healy <[EMAIL PROTECTED]> wrote:
> Never tried it or even seen anything on it, but
> theoretically you should be 
> able to grab the mouse position in the window, and
> if it falls within the 
> bounds of the text which should be a link, open an
> external application.
> 
> Some drawbacks:
> 1) You would have to change the mouse position range
> every time you changed 
> the text (or else write a little something to find
> out the mouse position 
> range of the text you want - but that would have to
> take into account font 
> face, font size, and the length of the preceding
> string, and might be a 
> little too complex to bother with.
> 
> 2) You would have to write something to find the
> path of the default browser 
> if you plan to distribute, as not everyone uses the
> same browser or keeps it 
> in the same place.
> 
> However, if you are going to use this only for
> yourself and not change the 
> link text (or the text surrounding it), you could
> theoretically do this to 
> make it work.
> 
> >Is there an object within Win32::GUI that will
> allow you to have a URL link 
> >in a GUI-window? When you click on the text it
> should open up your default 
> >browser and take you to that URL. You know, the
> kind that a lot of Apps 
> >have in their About screen. Or is there another way
> to create this effect?
>
_________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com
> 
> 
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
>
http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

Reply via email to