SETWINDOWPOS

From STX Wiki
< Programmer Guide‎ | Macro Library
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

SETWINDOWPOS

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.

Usage:

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

Parameters:
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 following format:

x y w h

Examples:

setwindowpos $#display 0 0 600 600 ; 1

see also:

GETWINDOWPOS, GETMONITOR, GETDESKTOP

Navigation menu

Personal tools