Maptitude GISDK Help

GetAbsoluteWindowSize()

Summary

Determines the absolute size of a window.

 

Syntax

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

 

Returns

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

 

Notes

Example

// Before running the example, open any map.

sz = GetAbsoluteWindowSize(GetMap(), {{"Units", "Inches"}, {"Client Area ", "True"}})

ShowArray(sz)

 

See Also

Function

Summary

GetWindowSize()

Determines the size of a window

SetWindowSize()

Sets the size of the specified or currently active window

GetWindowPosition()

Gets the position of a window

 

 

©2025 Caliper Corporation www.caliper.com