The API doesn't support such timers but their not hard to program yourself.
Set the nilEventTimer in EvtGetEvent to generate a nilEvent x times a second
and use your form's event handler to intercept the nilEvent message.  You
can look at the tick count or the seconds clock when you receive a nilEvent
to see if its time to perform your task.  Be warned: do not intercept every
nilEvent.  The UI will also generate and need to receive some of them to
work properly.

-----Original Message-----
From: Nielsen, Jimmy Selgen <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Thursday, March 16, 2000 5:25 PM
Subject: Timers in PalmOS


>yea yea... i know i'm being a pain :)..
>
>is it possible to create timers in PalmOS ??.. I dont mean Alarms, but real
>timers that i can register, and at a given interval, they send me events.
>And of course, they are only active when my app is running.
>
>I'm writing a project time logger application, and i have a trigger for a
>timer, so i would like to update the display say every minute, i know i
>could use SysTaskDelay(), but then i would be unable to respond to other
>events.
>
>Jimmy
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to