Maptitude GISDK Help |
Determines the absolute size of a window.
size = GetAbsoluteWindowSize(string window, array options)
Argument |
Contents |
window |
String of the form "window type|window name," or "window name" if the window name is unique among the window types, or null for the current window |
Option |
Type |
Contents |
Units |
String |
Any standard unit (e.g., "Inches"), or "pixels" to get the size in screen pixels |
Client Area |
Boolean
|
If "True" returns the dimension of the internal rectangle omitting title bar and borders; if "False" (the default) these are included |
An array of two reals indicating the absolute size of the window in standard units or pixels:
Element |
Type |
Contents |
1 |
Real |
The width of the window |
2 |
Real |
The height of the window |
The size may differ from what a ruler would show because user's picture width and height adjustments can't be taken into account.
For more information on window types, see Windows.
// Before running the example, open any map.
sz = GetAbsoluteWindowSize(GetMap(), {{"Units", "Inches"}, {"Client Area ", "True"}})
ShowArray(sz)
Function |
Summary |
Determines the size of a window |
|
Sets the size of the specified or currently active window |
|
Gets the position of a window |
©2025 Caliper Corporation | www.caliper.com |