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

Home » Public Forums » archive » Re: Clearing widget events
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: Clearing widget events [message #35501 is a reply to message #35500] Wed, 18 June 2003 13:45 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
MKatz843@onebox.com (M. Katz) writes:
>
> I've found that this can be a thorny issue when you give the user a
> "stop" button for something. If some other button is clicked several
> times and is taking a while to process things, then the stop button's
> event isn't able to magically jump ahead of the other queued events.
> So stop buttons can't solve itchy-button-finger syndrome.

Hmmm, I've found that when doing something like a "stop" button, I
basically bypass XMANAGER, and simply poll events for that button
using WIDGET_EVENT() at a convenient point in the computation loop. I
am able to receive events for the "stop" button even if other buttons
have been clicked first. Those other clicks will be ignored until the
computation is finished and XMANAGER is able do deliver them again.

But your points about hourglass cursors and disabling buttons is
certainly appropriate.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Spherical gridding
Next Topic: Re: sec : U Re: Coordinates from SLIDE_IMAGE

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

Current Time: Fri Oct 10 06:00:41 PDT 2025

Total time taken to generate the page: 0.80156 seconds