Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing Focus in Top Level Forms
Message
From
09/09/2002 13:18:05
 
 
To
09/09/2002 12:19:12
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00698359
Message ID:
00698392
Views:
17
>In a top level form running on the desktop with SCREEN=OFF, is there a way to programmatically determine that the top level form has lost focus? I.e. since when the user clicks on some other Win application, the Win desktop, etc. thus removing focus from the top level form application and the top level form Deactivate and Lost Focus events do not fire, is there a way to detect this?
>
You might want to look at FAQ #7957, How do I detect when VFP is no longer in Foreground, as a starting point; it's similar to what GT discusses, but it works with the PID rather than the hWnd to discriminate the loss of focus resulting from a shift to a child window from a loss of focus to another application.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform