Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
VFP BINDEVENTS Screen Activate...
Hi...
What I want is that if the program switched to from another program then
the activeform should refresh. The problem is I'm not sure what event to bind
to... The below code works but only if they happen to click on the white screen space and not if the click the title bar or over the activeform to
active the program.. Does anyone have a solution?
In vfp8 I tried the following code:
PUBLIC oScreenHandler
oScreenHandler=NEWOBJECT("ScreenEventHandler")
BINDEVENT(_SCREEN,"GotFocus",oScreenHandler,"ScreenActive")
DEFINE CLASS ScreenEventHandler AS Session
PROCEDURE ScreenActive
LOCAL otemp
**refresh activescreen
MESSAGEBOX("yes")
oTemp=GetScreen()
oTemp.Refresh()
RETURN
ENDDEFINE
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement