Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application focus detection.
Message
From
12/07/2003 01:41:26
 
 
To
11/07/2003 16:14:05
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00809403
Message ID:
00809531
Views:
29
>Is there some way to detect when a vfp application loses focus and when it regains focus?
>
>I have an application in which the user wants the Capslock turned on. This is no big deal, when the application opens, the capslock is turned on. WHen the application is closed the capslock is set back to it's original state.
>
>However, If the application has lost focus because the user has accessed some other application. The capslock remains on. I would like to be able to set the capslock back whenever the application loses focus.

I don't have VFP8. I took a look at the _VFP application object in VFP7, it doesn't look like there are any events you can hook into. Don't know if this has changed in VFP8.

Just thinking out loud, but maybe you could experiment with creating a top-level form and working with its .LostFocus.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform