Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_screen moved event
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01079379
Message ID:
01079380
Views:
13
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform