Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Halt the timer when another form is visible
Message
De
16/04/2008 08:52:04
 
 
À
16/04/2008 08:32:48
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01311041
Message ID:
01311045
Vues:
20
This message has been marked as the solution to the initial question of the thread.
>I display a form on top of my main form when a timer on the main form fires. How can I stop the timer from firing when that second form is on top?


You can either disable the timer, yourTimer.Enabled=.F. in secondForm.Activate() and re-enable it in its .DeActivate().

Or at the beginning of your method yourTimer.Timer() try something like:
If WonTop('secondForm')
   Return
Endif
&& your timer code follows
hth
-Stefan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform