GetWindows()

Summary

Gets a list of all the windows of a specified type.

Changes

Added type "Dataview" to Version 2013.

Syntax

window_list = GetWindows(string type_name)

Argument Contents
type_name Window type ("Map", "Editor", "Dataview", "Layout", "Figure", or "All", the default)

Returns

An array of three elements:

Element Type Contents
1 Array An array of window names (strings)
2 Array An array of window types (strings)
3 Array An array of window titles (strings)

Notes

  • Calling GetWindows("All") returns listings of all windows.

  • The first element, window name, is used as an argument to many GISDK functions.

  • For more information on window types, see Windows.

Example

mapwins = GetWindows("Map")
mw_names = mapwins[1]
allwins = GetWindows("All")
aw_names = allwins[1]
ShowMessage(String(mw_names.length) + " out of " + String(aw_names.length) +
" windows are maps.")

See Also

Function Summary
GetWindowName() Gets the name of the current window
GetWindowType() Gets the type of the current window