Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check Box
Message
De
14/11/2001 10:45:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00581002
Message ID:
00581536
Vues:
21
>>
>>If the timer.enabled is set to a different value programmatically, the checkbox should reflect the change. Very good method proposed by Jim, I think.
>
>The change was reflected only if you issue a "thisform.refresh()"
>

Actually, probably only the checkbox needs to be refreshed. Further, the "timer checkbox" class could be created; using the assign method, this.refresh() could handled automatically.

>BTW, what i mean is that a checkbox should
>not be use to run a command.

Running a command? He is turning on a timer...
BTW, it is good practice to turn off a timer when the timer event fires. Then at the end of the method, turn it back on. This prevents problems that may occur if the length of the process is longer than the timer interval.

I have noticed you think he is Steven is trying to perform a one shot deal (I think at one point you suggested he call the timer method directly from a command button). Well, if that is the case, he should use a command button, and he shouldn't even be using a timer.

However, I don't think that is the case, or why would he be using a timer?

>
>IMO, the command button was design to this task.
>

Yes, if you are running a command.
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform