DRAG WINDOW

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.8 (Modified)


DRAG WINDOW

ParameterTypeDescription
This command does not require any parameters

Description

The DRAG WINDOW command allows users to 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 Design Environment, contains a frame created with a static picture, above which are four invisible buttons for each side:

Each button has the following method:

   DRAG WINDOW   ` Start dragging window when clicked

In the User or Custom Menus environment, after executing the following project method:

   Open window(50;50;50+400;50+300;2)
   DIALOG([Table1];"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.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next