Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Application focus detection.
Message
De
12/07/2003 01:41:26
 
 
À
11/07/2003 16:14:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00809403
Message ID:
00809531
Vues:
28
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform