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

Home » Public Forums » archive » Re: Automatic button pressing:is there a way?
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: Automatic button pressing:is there a way? [message #5146 is a reply to message #5141] Sun, 01 October 1995 00:00 Go to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
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?
>
> 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.

In IDL there are two ways you might achieve what you want to do:

- Use widget timer events. You can get a timer event delivered to your event
handler every 1 second. You can recalculate your fit on receipt of these
events.

- Use the cw_fslider widget, asking only for mouse release events. This way
you don't get all of the events as the user drags the slider, only when he
releases it. This cuts down the number of times the fit would be calculated.


____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: MACHAR()
Next Topic: determining postition on image?

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

Current Time: Wed Oct 08 19:25:34 PDT 2025

Total time taken to generate the page: 0.00476 seconds