SETWINDOWPOS

From STX Wiki
< Programmer Guide‎ | Macro Library
Revision as of 16:28, 15 May 2012 by 193.171.195.15 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Set a new window position or size. If necessary, the position and size values are modified to fit the window onto the desktop (if m is not specified) or the monitor (if m is specified). If wdw is the name of a dialog, the position and size of the associated display is modified.

SETWINDOWPOS wdw [ x y w h ] ; [ m ]

wdw
The id of a display or dialog item.
x,y
The upper left corner position of the window in pixels (relative to the monitor m).
w,h
The width and height of the window in pixels.
m
The monitor to position the window wdw on (1 for the first monitor, 2 for the second ...).
Result
The window position in the format x y w h
see also
GETWINDOWPOS, GETMONITOR, GETDESKTOP

Navigation menu

Personal tools