Try passing a small value as the second argument to EvtGetEvent()...ie,
EventType event;
EventGetEvent(&event, 100);
This makes sure that you'll get a nil event every 100 ticks.
Ben
>Hi!
>
>This is my first post so please be kind.
>I am trying to do something which has apparently been done many times over:
>Namely: "Respond to events that are generated every x ticks."
>I have read many posts on this topic in the archive and they have
>gotten me maybe 50% there.
>
>My current situation is that I have a program that makes use of
>evtGetEvent and have set up
>a place to catch the nilEvent in the switch of my
>MainFormHandleEvent and generate more events.
>My problems are as follows :
>
>1. While a couple nilEvents are "caught" while running under POSE,
>NOTHING happens on
>my Visor! I have stepped through the code and it looks like no
>nilEvent is being generated!
>Or maybe it's getting handled elsewhere?
>
>2. Even under POSE, successive evtGetEvent calls are (apparently)
>not "getting through"....
>I would go into more detail, but I don't think it's worthwhile given
>item #1 above.
>
>If some kind soul could email me some working code that just makes a
>metronome or clock of some kind
>I will name a child after them.
>
>Thanks!
>
>Dan
>
>
>
>
>--
>For information on using the Palm Developer Forums, or to
>unsubscribe, please see
>http://www.palmos.com/dev/tech/support/forums/
+--------------------------------------------+
Ben Gottlieb Stand Alone, Inc.
v: 773-477-2492 f: 773-477-2579
[EMAIL PROTECTED] www.standalone.com
+--------------------------------------------+
Best Application: Control Bar (PalmSource '99)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/