comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Widget Hyperlink
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Widget Hyperlink [message #84228 is a reply to message #84207] Fri, 03 May 2013 13:16 Go to previous message
Russell Ryan is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: Re: WINDOW: Unable to connect to X Windows display: localhost:10.0
Next Topic: Re: Colorbar with fixed level and color

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:11:22 PDT 2025

Total time taken to generate the page: 0.00401 seconds