Re: Widget Hyperlink [message #84228 is a reply to message #84207] |
Fri, 03 May 2013 13:16  |
Russell Ryan
Messages: 122 Registered: May 2012
|
Senior Member |
|
|
On Friday, May 3, 2013 1:39:50 AM UTC-4, timoth...@gmail.com wrote:
> Hi Guys,
>
>
>
> Does anyone know if there is a way I can create a hyperlink in my IDL applications GUI? Its pretty stand thing to be able to do in most lanuages but I cannot find any documentation for doing this in IDL.
>
>
>
> Thanks,
>
> Tim
Grr... That sounds tricky and I'm unaware of anything to do this automatically. You could try to kludge it, here's what I would try...
Instead of using widget_label or widget_text, I'd use a widget_draw. Then set the background color to [192,192,192] and foreground color to some shade of blue. Then have it detect events based on mouse click. In the event handler, have it know to then spawn a web-browser with the correct webpage. Heck, you could make this a compound widget, which once the first click is detected, you change the foreground color to purple. (call it cw_hyperlink.pro) Of course, sizing the draw window and placing the text properly might be tedious, but should be possible.
Good Luck though, I think you'll need it...
Russell
|
|
|