Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check Box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00581002
Message ID:
00581164
Vues:
20
>>I have a timer that fires after the form is opened. The code in the timer is This.Enabled = .F.
>>Do program
>>
>>I want to use a checkbox to enable the timer again but the code
>>ThisForm.Timer3.Enabled = .T.
>>will not turn it back on.
>Steve,
>
>Where is the code;
>
>ThisForm.Timer3.Enabled = .T.
>
>If using a checkbox I would make the Controlsource of the checkbox Thisform.Timer3.Enabled by assiging it in the Init of the form as in;
>
>
>* Form's Init
>Thisform.Checkbox1.ControlSource = "Thisform.Timer3.Enabled"
>
>
>Now you don't need any code, checked timer is on, unchecked timer is off.
>
>Remember every line of code you write has to be maintained, if you can do it without code that's probably a better way.

In this case, the timer.timer event disable the timer!

Thats why i said earlier in this thread that
it is better to use a command button to
acces directly the code in the timer.timer event.

A checkbox may confuse the user because when you
click it, the control was checked and after
the timer.timer event fire it remain checked
even if the timer was now disabled...

You know what i mean?

HTH :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform