Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to tell...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00455656
Message ID:
00455684
Vues:
33
>object #1 has focus. if you click on object #2, for argument sake, is there a way to tell that it was a click on object #2 that caused object #1 to loose focus? what i am trying to achieve is...
>if object #1's var is empty when it looses focus, the form is released, unless the cause of the loss of focus was caused by a click on object #2.
>tia - john

You can do this my setting a form property (something like MouseUsed), which gets set to .T. in the MDown method of object #2. Then, in the LostFocus of object #1, activate a timer that fires after 1 second. In the timer method, check if MouseUsed is .T. If it is, set it to .F. and continue running the form. If MouseUsed is .F., release the form.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform