Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set focus in my application.
Message
De
20/02/2001 18:49:18
 
 
À
20/02/2001 07:35:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00477559
Message ID:
00477850
Vues:
27
>The problem is maybe very easy but I can't find good solution. I'd my application will be always on top . When somebody switch to other using alt+tab or WIN+M my application always go to top. But it never becames focus for keyboard entry. I must first click mouse on the main screen of my application
>and then i can of course entry from keyboard.
>Question is : How to set focus on my application without using mouse ?

If you can obtain the hWnd to the Fox form (there's a function to do this in FoxTools), you can call SetForegroundWindow() during the Activate event of the form; SetForegroundWindow() is documented in the API section here on UT.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform