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

Home » Public Forums » archive » Re: Strange key event handling when too many events accumulate
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Strange key event handling when too many events accumulate [message #68392] Wed, 28 October 2009 10:17
Oliver is currently offline  Oliver
Messages: 6
Registered: July 2009
Junior Member
ups - correction: it works sometimes...
I have to restrict it to key events, or the system will swallow button
release events which can be essential (in a press-potential_motion-
release sequence).
Cheers again
Oliver
Re: Strange key event handling when too many events accumulate [message #68393 is a reply to message #68392] Wed, 28 October 2009 10:12 Go to previous message
Oliver is currently offline  Oliver
Messages: 6
Registered: July 2009
Junior Member
Yup - that works.
Thanks!
Oliver

(wow, 7 minute response time - this feels almost like calling the
hotline, except that you're never put on hold ;-)
Re: Strange key event handling when too many events accumulate [message #68394 is a reply to message #68393] Wed, 28 October 2009 10:04 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Oliver writes:

> I'm observing the following behaviour with key events from
> widget_draw:
> E.g. widget_draw sends key events which are processed by a display
> method which (say for the 'n'-key) displays the next position in an
> image stack.
> When I keep the 'n'-key pressed, the key-repetition will send events
> faster than the display method can handle them (there's some
> calculation stuff involved).
> What happens is that when I release the 'n'-key, scrolling stops
> immediately, but when I press it only once again, the display method
> gets called another x times from key events that (my interpretation)
> seem to have lived in some sort of buffer and had not yet been
> processed.
> Does anyone know this behaviour and is there some remedy against it?

You could try clearing your queued up events from
your draw widget:

Widget_Control, drawID, /Clear_Events

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Strange key event handling when too many events accumulate
Next Topic: Re: quadtree algorithm

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

Current Time: Wed Oct 08 19:04:40 PDT 2025

Total time taken to generate the page: 0.00501 seconds