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


Reply via email to