Programmer Guide/Macro Library/GETWINDOWPOS: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}__NOTOC__
{{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.
Retrieve position and size of the specified window <var>wnd</var> (a display- 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-item, the position and 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>====
====<code>GETWINDOWPOS <var>wdw</var> [ <var>var</var> ]</code>====

Latest revision as of 16:25, 15 May 2012

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