version 6.0
SET WINDOW RECT (left; top; right; bottom{; window})
| Parameter | Type | Description | |
| left | Number | Global left coordinate of window's contents area | |
| top | Number | Global top coordinate of window's contents area | |
| right | Number | Global right coordinate of window's contents area | |
| bottom | Number | Global bottom coordinate of window's contents area | |
| window | WinRef | Window reference number, or | |
| Frontmost window of current process, if omitted |
Description
The command SET WINDOW RECT changes the global coordinates of the the window whose reference number is passed in window. If the window does not exist, the command does nothing.
If you omit the window parameter, SET WINDOW RECT applies to the frontmost window for the current process.
This command can resize and move the window, depending on the new coordinates passed.
The coordinates must be expressed relative to the top left corner of the contents area of the application window (on Windows) or to the main screen (on Macintosh). The coordinates indicate the rectangle corresponding to the contents area of the window (excluding title bars and borders).
Warning: Be aware that by using this command, you may move a window beyond the limits of the main window (on Windows) or of the screens (on Macintosh). To prevent this, use commands such as Screen width and Screen height to double-check the new coordinates of the window.
Example
See example for the command WINDOW LIST.
See Also