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

Home » Public Forums » archive » Re: Interrupting widget applications
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: Interrupting widget applications [message #7922 is a reply to message #7912] Fri, 24 January 1997 00:00 Go to previous messageGo to previous message
haimov is currently offline  haimov
Messages: 9
Registered: August 1996
Junior Member
In article <5c8dlj$996@post.gsfc.nasa.gov>, hegde@news.gsfc.nasa.gov says...
>
> Thanks for your suggestion. Although it works for a simple for loop, this
> type of implementation goes out of hand for multiple loops or recursive
> operations. And if it is required to monitor within a time consuming loop,
> I have to find another way.
>
> My need is to have an interrupt button in the main application window and
> it interrupt anything going on in other windows ( display windows, printer
> gizmos etc., ).
>
> So far the most convenient method I have found out is to monitor the event
> queue with WIDGET_EVENT( interrupt button ) wherever the interrupt is desired
> and proceed accordingly. Any suggestion is appreciated.
>
> Thanks,
>
> -M. Hegde
> hegde@neptune.gsfc.nasa.gov


I have similar experience, although I have not put much efforts to come up with a good
algorithm based on using TIMER.

My application uses widgets for a real-time radar display. It can show several different
images on one or two windows and includes various widget controled features. The main
reason I am using widget_event to handle widgets is the fact that my main loop is controled
by the radar data acquisition system (non-IDL program) and I want the interrupts to be
based on the DAQ behaviour rather than on time intervals by TIMER.

I also have a complex situations, which include needs for cancelations.
I control all of them through a DESTROY/CANCEL button on my main widget.

If you would like to see my code send me an email. It is relatively big set of routines
(about 1200 lines, not including external routines). This is my first serious work with
widgets and I am sure I am far from being an expert. Nevertheless it works nicely.

I am curious to know if I should make any efforts to avoid using widget_event even if
TIMER is not the natural thing to do.

Cheers, Sam

Samuel Haimov, Ph.D.
Atmos. Sci. Dept.
University of Wyoming
tel: (307) 766-2726
email: haimov@uwyo.edu
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: display many color images
Next Topic: Re: color buttons

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

Current Time: Sat Oct 11 10:08:55 PDT 2025

Total time taken to generate the page: 0.88118 seconds