Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Lostfocus event of VFP screen, does it?
Message
De
23/01/2003 12:52:15
 
 
À
22/01/2003 23:36:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00744598
Message ID:
00744784
Vues:
40
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform