GETWINDOWPOS

From STX Wiki
Jump to navigationJump to search

Retrieve position and size of the specified window wnd (a display- or dialog-item). If a variable name var is supplied, the return value is also stored in this variable along with the window style. The returned position is always the position a display-item. If wdw is the name of a dialog-item, the position and size of the associated display is returned. Note that x and y can be negative.

GETWINDOWPOS wdw [ var ]

wdw
The name of a display or dialog item.
var
The name of a global-, shell- or instance-variable.
Result
The position and size of window associated with wdw in pixels x y w h. If var is specified, the position and size as well as the window style are assigned to var in the following format: x y w h style
see also
GETDESKTOP, GETMONITOR, SETWINDOWPOS

Navigation menu

Personal tools