Clock WIDGET Use

I would like to use the clock widget to keep track of time
forward from an event - It doesn’t appear to support this kind of use…

If I set the hour/min/sec to 00:00:00 it just goes back to system time on
the
next tick instead of incrementing by one sec… and if I disable the
time tracking (flag) it just sits there at the last static value! humph!

I guess I could compute a realtime offset from current time and
use Pt_SetResource to “tune” out the current time (so my time will
then count forward from 00:00:00 )

However, I would like to use something less convoluted if possible!


any ideas???


thanks,

jon
pollack@hrpsystems.com

Hello Jon

Unfortunately this is the way that the clock widget works. If you have it
tracking time then it tracks it to the current time of the system. There is
no way to tell it which time it should track. You could have your clock
widget set to 0 and you could create your a timer widget. You then attach
a callback to the timer activate callback and in there you can change your
clock time. It should only be a couple lines of code.

Thanks,
Rodney


“res0kj2h” <res0kj2h@verizon.net> wrote in message
news:aj1sev$mub$1@inn.qnx.com

I would like to use the clock widget to keep track of time
forward from an event - It doesn’t appear to support this kind of
use…

If I set the hour/min/sec to 00:00:00 it just goes back to system time on
the
next tick instead of incrementing by one sec… and if I disable the
time tracking (flag) it just sits there at the last static value! humph!

I guess I could compute a realtime offset from current time and
use Pt_SetResource to “tune” out the current time (so my time will
then count forward from 00:00:00 )

However, I would like to use something less convoluted if possible!


any ideas???


thanks,

jon
pollack@hrpsystems.com

\