--- Christian Eyrich <[EMAIL PROTECTED]> wrote:
> 
> the UI of my app uses two repeating buttons. If the user klicks it,
> ctlEnterEvent and ctlRepeatEvent are sent out.
> ...
> But what my handler receives are ctlRepeatEvents as fast as this
> little machine can deliver - dozends in this half second.
> Do I really have to check ctlRepeat.time and discard every event
> that's not x milliseconds after the last one?
> 

When CtlHandleEvent() receives a ctlRepeatEvent event, it enters its
own event loop while the pen is down.  If the control is a repeating
control, and if it is responding to the first press or to a press after
a long enough time interval, then it sends another ctlRepeatEvent.

If you are seeing dozens of ctlRepeatEvent events every 1/2 second, you
must be bypassing CtlHandleEvent().  What is your "handler" doing?  Is
it intercepting system events?  If so, why?


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to