Re: Automatic button pressing:is there a way? [message #5145 is a reply to message #5141] |
Mon, 02 October 1995 00:00   |
zawodny
Messages: 121 Registered: August 1992
|
Senior Member |
|
|
In article <30SEP199520411554@siva.bris.ac.uk> phtmh@siva.bris.ac.uk (TOM HILLER) writes:
> I want to have my widget press one of its own buttons
> at regular intervals, about once a second. Is this possible
> in PV-WAVE 5.00b, on a SGI Power Challenge XL?
>
> The reason I want to do this; I have a complicated data set which
> can be fitted by a model. The fitting takes a good fraction
> of a second, and I want to be able to vary parameters with sliders,
> watch how the fitting looks on the screen, and get a number for the
> fit as I go along. I have set up the sliders, the data display, and
> the redrawing of the fit, but the widget is unuseable if I get it
> to re-calculate the fit on every slider event. At the moment I use
> a button to get the fit number, but this is a pain. Can I get it
> to calculate the fit once a second, i.e. press its fit button
> itself?
>
> Thanks for your help,
>
> Tom.
>
> P.S. We also have IDL 3.6.1a on a DEC Alpha, should I use this? I
> have not tried to program IDL widgets yet.
I do not know about PV-WAVE, but IDL has a .drag field in the event
structure for slider widgets. Use this to proccess only the "button
release" slider events.
You can send your own events to the Xmanager using the
WIDGET_CONTROL,SEND_EVENT=event_structure call.
Best of luck,
--
Dr. Joseph M. Zawodny KO4LW NASA Langley Research Center
E-mail: J.M.Zawodny@LaRC.NASA.gov MS-475, Hampton VA, 23681-0001
|
|
|