TN> Hi there,

>> I would  like to timeout an application (exit the application) if the user
>> has not accessed in a certain amount of time (say 5 minutes).
>>
TN> I guess you would want to keep the time, everytime the user
TN> interacts with the program, update
TN> that time to the current time. On the mainloop, frequently
TN> check to see if it is time out or not,
TN> if time out, then queue the close event to exit the program.

You better to set:
    EvtGetEvent(&event, xxx);
where xxx - is number of system ticks.
Then you need to catch nilEvent and check your timeout.
Damir.






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

Reply via email to