4D v16.3

DRAG WINDOW

Home

 
4D v16.3
DRAG WINDOW

DRAG WINDOW 


 

DRAG WINDOW  
Does not require any parameters

The DRAG WINDOW command lets users drag the window on which they clicked following the movements of the mouse. Usually you call this command from within an object method of an object that can respond instantaneously to mouse clicks (i.e., invisible buttons).

Example  

The following form, shown here in the Form editor, contains a colored frame, above which are four invisible buttons for each side:

Each button has the following method:

 DRAG WINDOW //Start dragging window when clicked

After executing the following project method:

 $winRef:=Open form window("custom_drag";Modal form dialog box)
 DIALOG("custom_drag")
 CLOSE WINDOW

You obtain a window similar to this:

Then you can drag the window by clicking anywhere on the borders.



See also 

GET WINDOW RECT
SET WINDOW RECT

 
PROPERTIES 

Product: 4D
Theme: Windows
Number: 452

 
HISTORY 

Modified: 4D v6.8

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)