Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can VFP know if it's idle for a period of time?
Message
De
08/08/2001 18:05:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
08/08/2001 17:59:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00541244
Message ID:
00541588
Vues:
26
>Good idea, Hilmar. This would fit well in the timer event my app object always uses.
>
>
>>I think you would need to something like this:
>>
>>
  • Still use a timer.
    >>
  • Set ThisForm.KeyPreview = .T. for each form (do this in your base class).
    >>
  • In the Form.KeyPress event, issue Timer.Reset(). This will start counting from zero. (Do this in your base classes, too.)

    And don't forget the other reply you got, about long processes without user input. I think this can be solved like this:
    MyLongProcess()
    goGlobalTimer.Reset()  && start counting time from zero
    I am not sure, but I think the timer will not be executed while another process is running.

    Hilmar.
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Précédent
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform