GET WINDOW RECT

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 2003 (Modified)


GET WINDOW RECT (left; top; right; bottom{; window})

ParameterTypeDescription
leftNumberLeft coordinate of window's contents area
topNumberTop coordinate of window's contents area
rightNumberRight coordinate of window's contents area
bottomNumberBottom coordinate of window's contents area
windowWinRefWindow reference number, or
Frontmost window of current process, if omitted or
MDI window if -1 (Windows)

Description

The GET WINDOW RECT command returns the coordinates of the window whose reference number is passed in window. If the window does not exist, the variable parameters are left unchanged.

If you omit the window parameter, GET WINDOW RECT applies to the frontmost window for the current process.

The coordinates are expressed relative to the top left corner of the contents area of the application window (on Windows) or of the main screen (on Macintosh). The coordinates return the rectangle corresponding to the contents area of the window (excluding title bars and borders).

Note: Under Windows, if you pass -1 in window, GET WINDOW RECT returns the coordinates of the application window (MDI window). These coordinates correspond to the contents area of the window (excluding menu bars and borders).

Example

See example for the command WINDOW LIST.

See Also

SET WINDOW RECT.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next