Programmer Guide/Macro Library/SETWINDOWPOS: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
:;<var>m</var>: The monitor to position the window <var>wdw</var> on (1 for the first monitor, 2 for the second ...). | :;<var>m</var>: The monitor to position the window <var>wdw</var> on (1 for the first monitor, 2 for the second ...). | ||
;Result: The window position in the format <code>x y w h</code> | ;Result: The window position in the format <code>x y w h</code> | ||
;see also: [[Programmer Guide/Macro Library/ | ;see also: [[Programmer Guide/Macro Library/GETWINDOWPOS|GETWINDOWPOS]], [[Programmer Guide/Macro Library/GETMONITOR|GETMONITOR]], [[Programmer Guide/Macro Library/GETDESKTOP|GETDESKTOP]] |
Latest revision as of 15:28, 15 May 2012
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