Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to tell...
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00455656
Message ID:
00455684
Views:
31
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform