Language Reference Guide : Events : WindowMoved Event
 
Share this page          
WindowMoved Event
The WindowMoved event is triggered when user moves the window in which a frame is running.
This event has the following syntax:
on windowmoved
The following attributes of the FrameExec class can be used in the WindowMoved event block:
WindowXLeft
Specifies the x coordinate of the left edge of the window relative to the screen
WindowYTop
Specifies the y coordinate of the top of the window relative to the screen
Use the CurFrame system variable to access these attributes. For more information, see FrameExec Class.
Usage: The WindowMoved event can be used in frame scripts only.
This event lets the user know that a frame has been moved on the screen. The user can inquire on the WindowXLeft and WindowYTop values in the event block to see where the window has been moved.
Note:  This event occurs after the move is complete and cannot be canceled.
More information:
WindowXLeft Attribute
WindowYTop Attribute