Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Lostfocus event of VFP screen, does it?
Message
From
23/01/2003 12:52:15
 
 
To
22/01/2003 23:36:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00744598
Message ID:
00744784
Views:
36
>Hi all!
>I would like to trap lostfocus and gotfocus of VFP screen. For example, If I am working with a window of application's VFP, then I change into windows window of MS Word. As aresult my application's VFP appears a message to the user.
>Please help me.
>Canh

For versions of VFP earlier than 8, you can try this:

* screenmethods.prg
DEFINE CLASS sm AS Custom
SM = _SCREEN
FUNCTION SM.LostFocus
WAIT WINDOW "LostFocus"
ENDFUNC
FUNCTION SM.GotFocus
WAIT WINDOW "GotFocus"
ENDFUNC
ENDDEFINE


* your code
SET PROCEDURE TO screenmethods
oScreenMethods = CREATEOBJECT("sm")
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform