Set EvtGetEvent to something other than no timeout and trap the nilEvent
event.  Ignore the nilEvent message when you don't need your timer.  Look
over any of the game source code included in the SDK for an example.
Remember to return false when intercepting the nilEvent as the OS uses them
for some of the UI.

http://groups.yahoo.com/group/palm-dev-forum/message/88674
http://groups.yahoo.com/group/palm-dev-forum/message/78103
http://groups.yahoo.com/group/palm-dev-forum/message/69708
http://groups.yahoo.com/group/palm-dev-forum/message/69706

----- Original Message -----
From: "Paturi, Ramesh P (IndSys)" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, July 01, 2003 9:12 AM
Subject: Trying to do an activity periodically


> All:
> My application needs a function that needs to be called
> periodically, once every sec. While the function is being executed any
user
> input in terms of button clicks or hardbutton clicks will need to be
> handled. So in effect I should be able to quit the function operation and
> respond to user input. How can I achieve this??? I have two buttons on the
> screen and both of them are assigned to hard buttons ( address book and
> calendar buttons).
>
> I was trying to look at timer and could not get much help on the
> same. I guess some one can help me out..
>
>
> Thanks in advance.
>
> Regards
> Ramesh
>
>
> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE and may contain confidential and privileged information.
> If the reader of this message is not the intended recipient,
> you are notified that any dissemination, distribution or copy of this
> communication is strictly Prohibited.
> If you have received this message by error, please notify us
> immediately, return the original mail to the sender and delete the
> message from your system."
>
>
> --
> 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