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

Home » Public Forums » archive » WIDGETS - AGAIN
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
WIDGETS - AGAIN [message #2889] Thu, 01 September 1994 17:30
mallozzi is currently offline  mallozzi
Messages: 60
Registered: August 1994
Member
Thanks for your responses about widgets. I implemented the COMMON block as
suggested. I do not understand the suggestion about using a structure
instead of a COMMON, however. Also, I think that I did not state my
original problem clearly.

I am creating the widget from my main IDl code, with the line
XMANAGER,/JUST_REG,'name',id
in the procedure that builds the widget.

By using the COMMON block, I can now sense and desense the widgets via
WIDGET_CONTROL,id,sensi=1

But if I then use XMANAGER,'name',id, control passes to the widget,
but how do I then transfer back to $MAIN$ (or the calling procedure)
after I make my selection?
(I also want to have the current values stored in the widget text
fields available in $MAIN$).

I noticed that if I just use WIDGET_EVENT in the procedure that builds
the widget, I can grab the event and continue on in $MAIN$, but I am
then limited to making a selection immediately after the widget is
built, and rebuilding after every slection isn't very elegant! The IDL
manual (with its infinite wisdom!) says "widget applications should always
use XMANAGER in preference to calling WIDGET_EVENT directly". OK, good,
but how do I grab the event and return to $MAIN$?

Thanks for your time, and I would appreciate any further help.

Your fellow IDL fanatic,
Bob Mallozzi
mallozzi@ssl.msfc.nasa.gov
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL trig functions
Next Topic: IDL mathematics

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

Current Time: Wed Oct 08 18:13:40 PDT 2025

Total time taken to generate the page: 0.00469 seconds