comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: Widget Hyperlink

Re: Widget Hyperlink
type: item
description: 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
creator: Russell Ryan
date: 2013-05-03T20:16:21-00:00

Re: Widget Hyperlink
type: item
description: > >> 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. > We're looking at a WIDGET_HTML control for a future IDL release. Windows and Mac are already working, but it's been tricky to get it to work correctly on Linux. > > Instead of using widget_label or widget_text, I'd use a widget_draw. > I agree with Russell, and to extend this idea, I'm wondering if we should introduce a set of drawn widget controls to IDL. We already use them all over place in ENVI. Their advantages are: they'd look nice, they'd work within the current widget API and they'd work across platforms*. *Except when they don't because of the vagaries of graphics hardware support. This would be the big drawback of this idea. What do you think? mp
creator: Mark Piper
date: 2013-05-06T15:18:47-00:00