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

Home » Public Forums » archive » Re: 'remote control' for widgets?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: 'remote control' for widgets? [message #33402 is a reply to message #33230] Fri, 20 December 2002 13:10 Go to previous messageGo to previous message
Stein Vidar Hagfors H[2] is currently offline  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
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How do I get the path for a UNIT of a file?
Next Topic: My Christmas Wish...

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

Current Time: Fri Oct 10 15:00:08 PDT 2025

Total time taken to generate the page: 0.55504 seconds