Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Halt the timer when another form is visible
Message
 
À
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:
01311055
Vues:
17
>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?

How do you call child form?
You could do:

1. Add new property in the main form named ChildForm and Check ASSIGN method in New Property dialog.
2. When you need to call the Child form do:
DO FORM .... NAME thisform.ChildForm LINKED
3. In ChildForm_Assign event:
LPARAMETERS leNewVal
thisform.Timer.Enabled = ISNULL(leNewVal)
(not tested)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform