Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Network:
Windows 2003 Server
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?
Jim
>>I am developing a Checkbox class. Among other things, I want to be able to control when the box gets checked, unchecked, or reset to null.
>>
>>Under the debugger, I can see that the state of the checkbox has already been modified by the time it reaches the checkbox Click and InteractiveChange events. However, The state has not been modified by the time we reach the GotFocus event.
>>
>>How can I override VFP's default handling of the checkbox control, and check, uncheck, or reset to .NULL. in my own code.
>
>How about adding a custom property to track the current/previous state, so you can make informed decisions in Click?
>
>Tamar
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement