Programmer Guide/Macro Library/GETWINDOWPOS: Difference between revisions
From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import) |
No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}}__NOTOC__ | ||
Retrieve position and size of the specified window <var>wnd</var> (a display-, graph- or dialog-item). If a variable name <var>var</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 <var>wdw</var> is the name of a dialog- or graph-item, the position/size of the associated display is returned. Note that <code>x</code> and <code>y</code> can be negative. | |||
====<code>GETWINDOWPOS <var>wdw</var> [ <var>var</var> ]</code>==== | |||
:;<var>wdw</var>: The name of a display or dialog item. | |||
:;<var>var</var>: The name of a global-, shell- or instance-variable. | |||
;Result: The position and size of window associated with <var>wdw</var> in pixels <code>x y w h</code>. If <var>var</var> is specified, the position and size as well as the window style are assigned to <var>var</var> in the following format: <code>x y w h style</code> | |||
<code>GETWINDOWPOS <var>wdw</var> [ <var>var</var> ]</code> | ;see also: [[Programmer Guide/Macro Library/GETDESKTOP|GETDESKTOP]], [[Programmer Guide/Macro Library/GETMONITOR|GETMONITOR]], [[Programmer Guide/Macro Library/SETWINDOWPOS|SETWINDOWPOS]] | ||
==== | |||
;<var>wdw</var> | |||
:The name of a display or dialog item. | |||
;<var>var</var> | |||
:The name of a global, shell or instance variable. | |||
The position and size of window associated with <var>wdw</var> in pixels | |||
<code>x y w h</code> | |||
If <var>var</var> is specified, the position and size as well as the window style are assigned to <var>var</var> in the following format: <code>x y w h style</code> | |||
[[Programmer Guide/Macro Library/GETDESKTOP|GETDESKTOP]], [[Programmer Guide/Macro Library/GETMONITOR|GETMONITOR]], [[Programmer Guide/Macro Library/SETWINDOWPOS|SETWINDOWPOS]] |
Revision as of 15:22, 15 May 2012
Retrieve position and size of the specified window wnd (a display-, graph- 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- or graph-item, the position/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