At 09:15 PM 3/10/2004, you wrote:
In my app I use nilEvent to check the time interval. It works well in all
forms except one form that is called by FrmDoDialog.

For this specific form, I call FrmInitForm,  FrmSetEventHandler and then
FrmDoDialog. The handler finally does get the nilEvent but after about 5
seconds, while the delay in EvtGetEvent is only some time ticks. All other
forms get nilEvent very often whenever they are active.

Is there anything special I need to pay attention to in this case ?

In the FrmDoDialog call, you've got a new event loop where your EvtGetEvent isn't being called. You need to call EvtSetNullEventTick to set the nilEvent timeout before calling FrmDoDialog to get them on a regular basis.



-- Ben Combee, senior DTS engineer, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/


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

Reply via email to