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

Home » Public Forums » archive » Accessing other widgets.
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
Accessing other widgets. [message #10300] Mon, 10 November 1997 00:00
Darren Kelly is currently offline  Darren Kelly
Messages: 2
Registered: November 1997
Junior Member
I used the WIDED builder to construct a widget driven IDL application.
I'm having trouble passing info around betweern widgets. For example,
I have certain labelled fields one can edit to change the plotting
range. You can also click on certain buttons which set predefined
graphic ranges. These range values should then be updated in the
labelled fields.

My application is called BLME. Here is a small extract fo the widget
event handling. The fields for common variables i1 and i2 can
be editted indicidually or set by a single button:

PRO BLME_Event, Event
COMMON BLMESHARE

WIDGET_CONTROL,Event.Id,GET_UVALUE=Ev

CASE Ev OF

'I1FIELD': BEGIN
WIDGET_CONTROL,GET_VALUE=i1,Event.Id
END
'I2FIELD': BEGIN
WIDGET_CONTROL,GET_VALUE=i2,Event.Id
END
'BUTTON184': BEGIN
; Print, 'Event for ALL TIME STEPS'
i1=1
i2=nt
WIDGET_CONTROL,SET_VALUE=i1,I1FIELD <-- doesn't work
WIDGET_CONTROL,SET_VALUE=i2,I2FIELD <-- doesn't work
END

Within PRO BLME_Event the widgets I1FIELD and I2FIELD are
unknown ! short of contructing a common block with all the
widgets (there are many), how can I access other widgets ?
I require many variations on this example, i.e. actions of many
widgets affecting many other widgets.

Darren Kelly, DESY -MPY-
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Numerical Recipes Article
Next Topic: defining Keys

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

Current Time: Wed Oct 08 15:27:10 PDT 2025

Total time taken to generate the page: 0.00553 seconds