Another way to do this is to build the bitmaps, construct a window,
and display the clock in the window.  Check the system preferences
time every so often and update the form.  This works well with an
onscreen clock, but as for a timer...well, I don't know how the system
updates for each minute, but there must be some form of hardware timer
in there somewhere that notifies the preferences when a minute has
passed.  This is something that I've been playing around a little 
with (on my own time, of course, if any Avnet people read this forum)
and I'd love to hear how you tackle this.

Thanks!
// Rus Daniel Nesse 
// SPT App Dev
// Avnet Convergent Technologies

>-----Original Message-----
>From: Steve Austin [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 25, 2000 1:38 PM
>To: Palm Developer Forum
>Subject: Displaying a timer or clock
>
>
>Hello everyone,
>
>I'm sure someone has done this before, so I figured I"d ask 
>for advice.  I
>need to display a "ticking" timer and I'm wondering about 
>event frequency.
>I know how to send events, and I know how to handle the 
>screen, but how do I
>get an event to process every second.  It seems like if I was 
>going to write
>code to do this I'd end up filling the message queue with 
>timer messages,
>and most of the time the timer code would just exit, until a 
>second actually
>passed.  This kind of timer would use up 100%  CPU time, and make it
>difficult to process user input (like clicking a button that closed the
>form).  What's the "right" way to go about this....
>
>Thanks,
>
>Steve
>
>
>-- 
>For information on using the Palm Developer Forums, or to 
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>

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

Reply via email to