Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling checkbox in my own class
Message
De
11/11/2011 13:20:19
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01528570
Message ID:
01528680
Vues:
119
>Hi Tamar,
>
>Thanks for the suggestion. I have added code to the click method to do some other things when the user clicks on the checkbox.
>
>The problem that I am having is that the action on the checkbox already occurs by the time I get to the click code.
>
>Most annoying is that it goes from the .NULL. state (blue) to .F. when the user clicks. If user clicks the 2nd time, it goes to .T. The user can see that. I want to have it go from .NULL. to .T. Actually that seems like the most logical transition: when a box is not checked (either .F. or .NULL.), it should go to checked.
>
>I suppose my click code could switch it back. I guess the user would see it blink.
>
>Isn't there a more elegant solution?
>

Would LockScreen help here? Maybe set it to .T. in the checkbox's GotFocus, and set it to .F. after you've done everything you need to? What I don't know is whether Click would actually fire in that case.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform