Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
THISFORM.Release if idle?
Message
De
09/12/1997 16:04:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00064783
Message ID:
00064792
Vues:
39
>>>I want to close down a form after it has been inactive for a certain period of time. I'm assuming I should use a timer but I'm not sure how to use it properly to capture this situation. Any ideas?
>>
>>*** Timer.Timer event
>>IF ABS(seconds()-thisform.seconds)>1200 && check every 20 min.
>> Release Thisform
>>ENDIF
>>*** ControlX.InteractiveChange event (or something else)
>>Thisform.seconds=seconds()
>
>The Timer event and Seconds property I understand but I need some clarification on the ControlX. Do you mean I should have a particular object to update Thisform.Seconds or do I need to update it from every object?

I meant any object. You should clarify what means 'inactive' form. If it means that user doesn't change values of some controls then InteractiveChange of this controls should participate, if it means not clicking on some buttons, them buttons click events should be added, etc.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform