Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing Focus in Top Level Forms
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00698359
Message ID:
00698384
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?
>>
>>Thanks,
>>Bill
>
>How about a timer which compares the hWnd property of the form against the value returned by the GetActiveWindow() API call?

Hi George,

Well, Yaa... :-)

I guess I will give that a look see, but man, I was hoping for something a little simpler and less invasive, like something I just overlooked. :-)

Thanks man,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform