Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
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-