updating a different widget from the event handler [message #29965] |
Tue, 26 March 2002 06:21 |
dmh
Messages: 3 Registered: March 2002
|
Junior Member |
|
|
I have set up my first ever GUI and it runs ok. I have a "Browse"
button and a text widget for a file path. I would like to have the
file path appear in the text widget after clicking on Browse and
choosing a file. Getting the path is easy (I named it "newpath"), but
how to update the text widget (which is called "source") is beyond me.
I tried
widget_control, source, set_value=newpath
but the event handler has never heard of "source"...it thinks it's an
undefined variable.
I realise David Fanning's FSC_FILESELECT - using compund widget
programs as objects - does this, but that method seems complicated to
me: is there an easy solution?
Thanks in advance for any help.
Dave Higgins
IDL 5.5 Win2000
|
|
|