| Maptitude GISDK Help |
Sets the size of the specified or currently active window.
SetWindowSize(string window_name, integer width, integer height)
| Argument | Contents |
|---|---|
| window_name | 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 |
| width | The width of the window |
| height | The height of the window |
Both sizes are expressed as percentages of the Maptitude frame window; that is, the values for width and height are always less than or equal to 100.
SetWindowSize() with width = 100 and height = 100 results in a maximized window.
For more information on window types, see Windows.
// This macro tiles two maps within the Maptitude frame window
SetWindowPosition("Map|First Map", 0, 0)
SetWindowPosition("Map|Second Map", 50, 0)
SetWindowSize("Map|First Map", 50, 100)
SetWindowSize("Map|Second Map", 50, 100)
| Error Type | Meaning |
|---|---|
| NotFound | There is no window of the designated type and name |
| Function | Summary |
|---|---|
| GetWindowSize() | Determines the size of a window |
| SetWindowPosition() | Sets the position of the a window |
| SetWindowSizePixels() | Sets the size of the specified or currently active window |
| SetWindow() | Makes a window the currently active window |
| SetMap() | Makes a map the current map |
| ©2025 Caliper Corporation | www.caliper.com |