I need a timer in a modal dialog (launched with FrmDoDialog()). I launch the dialog in respond to a notification and do not have a main event loop. Therefore I cannot use the common solution for timers with EventGetEvent(&event, timerIntervalTicks); instead of EventGetEvent(&event, evtWaitForever);.
I have tried to use EvtSetNullEventTick(timerTicks) in order to receive a nilEvent in my FormEventHandler. I do receive a nilEvent, but the problem is that I receive the nilEvent too early. Therefore I calculate the remaining time (ticks) and request a new nilEvent with EvtSetNullEventTick(remainingTicks). The problem is that this results in that I receive several (about 45) nilEvents in a very short time interval and then none until my timeout time has expired with about a second. Anyone have a solution for timers in modal dialogs? Regards Andreas -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
