You can get a near periodic nilEvent if you set the timeout parameter in
EvtGetEvent to something other than 0.   Set the time out to something at
least twice the desired frequency and look at the current tick count before
performing your operation.  Do not rely on the timing of the nilEvent, check
the time yourself.

----- Original Message ----- 
From: "Vu Pham" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, March 29, 2004 10:02 AM
Subject: Re: NilEvents on Modal Dialogs


>
> ----- Original Message ----- 
> From: "Eric Potter" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Monday, March 29, 2004 8:49 AM
> Subject: NilEvents on Modal Dialogs
>
>
> > Is there a way to modify how often you recieve NilEvents while a Modal
> > Dialog is displayed?
>
>
>
> Use EvtSetNullEventTick one time before the dialog is called, and then
from
> winthin the event handler of that dialog, call that function again. Note
> that this function says "Make sure *a* nilEvent ... ", not periodical.
>
> Vu
>
>
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>



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

Reply via email to