Re: 'remote control' for widgets? [message #33402 is a reply to message #33230] |
Fri, 20 December 2002 13:10   |
Stein Vidar Hagfors H[2]
Messages: 28 Registered: October 2002
|
Junior Member |
|
|
David Fanning <david@dfanning.com> writes:
> s@visita2.die.upm.es (s@visita2.die.upm.es) writes:
>
>> I try to progammatically set values of widgets like sliders or checkboxes.
>> When I use "WIDGET_CONTROL,myWidget,SET_VALUE=myValue", only the widget
>> gets changed, but the appropriate event is not generated.
>>
>> What I am looking for is a technique taht allows me to change the value of
>> a widget _and_ generates the event that would have been generated if I
>> had changed the widget using the mouse or keyboard.
>
> Widget_Control, myWidget, Send_Event=thisEventStruct
Sigh... This reminds me of a program I once wrote (xrecorder) that would
"infest" *any* widget program by installing its own routines as widget event
handlers, to record the events... You could in fact record a complete
demonstration session for any widget program, store it, and replay it (with
the correct functionality - even moving the cursor over the screen to the
right buttons etc to aid the eye, and with the recorded [editable] timing
between each event, you could even edit the script to insert comments that
would pop up on screen). The nice thing was that *nothing* had to be changed
in the original programs. The only restriction was that the *structure* of the
widget program could not (of course) be changed between recording and
replaying.
Of course, the whole darn thing broke when IDL introduced a new version with
their "real modal widgets"). Ah, those were the days, when xmanager,/modal
worked. At least *one* person got to use it for a real-world application
(demonstrating the functionality of a relatively large software suite) before
it got obsoleted, and it was a lot of fun to make!
--
------------------------------------------------------------ --------------
Stein Vidar Hagfors Haugan
ESA SOHO SOC/European Space Agency Science Operations Coordinator for SOHO
NASA Goddard Space Flight Center, Tel.: 1-301-286-9028
Mail Code 682.3, Bld. 26, Room G-1, Cell: 1-240-354-6066
Greenbelt, Maryland 20771, USA. Fax: 1-301-286-0264
------------------------------------------------------------ --------------
|
|
|