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

Home » Public Forums » archive » Using WIDGET_EVENT to break into loops
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: Using WIDGET_EVENT to break into loops [message #6789 is a reply to message #6714] Tue, 13 August 1996 00:00 Go to previous message
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
I'm fraying this thread a little, I know, but I was wondering if anyone
else has blocked-event problems in IDL 4.0.1 under Windows NT (3.51).

I use the WIDGET_EVENT(stop_button,/nowait) technique to allow users to
break out a processing loop, and it works fine under Unix.
However, it only works sometimes under NT - it seems that if my loop is not
complicated enough then IDL totally hogs the CPU and mouse clicks don't get
through at all. The WAIT() function does provide an escape, but it slows
things down considerably (even with the smallest usable delay) and flickers
the main window's title annoyingly. Setting input focus to the button just
before the loop will allow the user to break out by pressing the spacebar
(this gets through), but you can't expect a user to guess that (s)he has to
do this instead of clicking the mouse.

Has anyone found a way around this, or is it an NT setup thing specific
to my machine?

Peter Mason
[Message index]
 
Read Message
Read Message
Previous Topic: Using the serial port of a SunSparc station to the data in real time
Next Topic: Hitran/IDL

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

Current Time: Wed Oct 08 19:24:53 PDT 2025

Total time taken to generate the page: 0.23844 seconds