>yea yea... i know i'm being a pain :)..

This is polite.  You should have seen some of the other threads I have 
contributed upon! :)

>
>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.
>

Unfortunately, there is no equivalent of SetTimer() as in MFC coding.  The 
best approach I have seen for this is to keep track of time in your main 
application loop or main form event handler.  After a specificed period has 
passed, do your function for logging.

In our Datastick SDK examples, we have the event grabbing call in the 
application loop timeout after a few milliseconds if there is no event.  
Thus, you will always have your main form event handler called at regular 
intervals.

The default for a Metrowerks generated project is to have this event grabber 
wait indefinately 'til and event comes in so you need to make sure that it 
isn't waiting for a system event.

>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.
>

I also have found SysTaskDelay() to be way to much for anamations like you 
want to do.

Steve


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


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

Reply via email to