Maptitude GISDK Help |
GISDK provides full control over the size and location of windows. Window sizes and positions are expressed in numbers ranging from 0 to 100, where the number represents a percentage of the size of the frame. The functions shown in the following table are used for this purpose:
Function |
What it does |
Arranges all minimized windows |
|
Cascades open windows |
|
Determines the absolute size of a window |
|
Gets the position of a window |
|
Determines the size of a window |
|
Maximizes a window so that it fills the Maptitude client area |
|
Minimizes (iconizes) the specified window |
|
Restores a window to its original size |
|
Sets the position of a window |
|
Sets the size of the specified or currently active window |
|
Sets the size of the specified or currently active window |
|
Tiles all open windows |
Here is a short example:
// Set the frame (the program window) to fill the entire screen
SetWindowPosition("Frame|", 0, 0)
SetWindowSize("Frame|", 100, 100)
// Now, get the names of all the windows
win_info = GetWindows()
win_names = win_info[1]
win_types = win_info[2]
//Loop over windows, minimizing all editors and layouts
for i = 1 to win_types.length
if win_types[i] <> "Map" then MinimizeWindow(win_names[i])
end
// Finally, tile all the maps on the screen
TileWindows()
©2025 Caliper Corporation | www.caliper.com |