Message
From
13/04/2000 10:17:51
 
 
To
13/04/2000 08:59:34
General information
Fórum:
Visual FoxPro
Category:
Formulários & Criador de Formulários
Título:
Miscellaneous
ID da thread:
00359198
ID da mensagem:
00359257
Views:
13
Tom,

>Any ideas on the logic or an easier way to achieve the same result?

Could we clarify the result that you want? Is this correct: You want to return to page one of a pageframe if there has been no user activity for x number of minutes/hours?

Usually timeouts (such as closing open forms and returning to a startup condition or even exiting the app) can be achieved with an application-level timer that is reset with every keystroke and/or mouse click. You can put code in your base subclasses of controls to reset that timer in the KeyPress, MouseDown and/or InteractiveChange events, that will call something like oApp.ResetTimer() .

At least one of the commercial frameworks uses something similar to this.
You could use the same principle at the form level or even at the pageframe level with just one timer.

I guess the more important question might be why does user inactivity cause problems with your app? Are they holding file locks, or something like that? There may be a design issue that could be handled differently and eliminate this problem.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Responder
Mapa
View