Maptitude GISDK Help

IsWindow()

Summary

Determines whether a window is of a given type.

 

Changes

Added type "COM Control" to Version 2013. Added type "DotNet Control" to Version 2014.

 

Syntax

answer = IsWindow(string window_name, array types)

 

Argument Contents
window_name A string of the form "window type|window name" with the name of the window to be tested, or null for the current window
types An array of strings with one or more window types or characteristics: "Frame", "Map", "Editor", "Dataview", "Chart", "Prism Map", "TIN Figure" (3D surface), "Layout", "Iconized", "Maximized", "Normal", "COM Control", "DotNet Control"

 

Returns

A integer value of 1 if the window is of one of the designated types, or 0 otherwise.

 

Notes

Example

if IsWindow(win_name, {"Iconized"}) then

     MaximizeWindow(win_name)

else

     MinimizeWindow(win_name)

 

Error Codes

Error Type Meaning
NotFound There is no window by the given name
Error One of the entries in the types array is invalid

 

See Also

Function Summary
GetFigureType() Gets the type of a figure window
GetWindows() Gets a list of all the windows of a specified type
GetWindowType() Gets the type of the current window
SetWindow() Makes a window the currently active window

 

 

©2025 Caliper Corporation www.caliper.com