Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_screen moved event
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01079379
Message ID:
01079380
Vues:
14
>I know how to use the form moved event, but how do you detect if the user moved the application window, the _screen object? I want to capture the _screen.top and _screen.left when the application is moved when it is not in full screen mode. How can I capture these variable after the _screen is moved?

You can use BINDEVENT(). Here's a sample code
PUBLIC oHandler
oHandler = NEWOBJECT("ScreenMovedHAndler")

BINDEVENT(_SCREEN, "Moved", oHandler, "Moved")

DEFINE CLASS ScreenMovedHandler AS Session
   PROCEDURE Moved
       ? _SCREEN.Top, _SCREEN.Left
   ENDPROC

ENDDEFINE
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform