Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timeout...
Message
De
13/04/2000 10:17:51
 
 
À
13/04/2000 08:59:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00359198
Message ID:
00359257
Vues:
9
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform