From *memory*, write a ticks delay into eventP->data.ctlRepeat.time in
your event handler.
  Let me know how this goes.
  Alan
  "Christian Eyrich" <[EMAIL PROTECTED]> wrote in message
news:93534@palm-dev-forum...
>
> Hi there,
>
> the UI of my app uses two repeating buttons. If the user klicks it,
> ctlEnterEvent and ctlRepeatEvent are sent out.
> About what happens if he holds the pen down the documentation says "When
> CtlHandleEvent receives a ctlRepeatEvent in a repeating button, it sends
> another ctlRepeatEvent if the pen remains down within the bounds of the
> control for 1/2 second beyond the last ctlRepeatEvent."
>
> 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?
>
> Regards,
> Christian
>
> OS 3.5, SDK 4.0, PRC-Tools
>
>
>



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

Reply via email to