| Maptitude GISDK Help |
Sets the size of the specified or currently active window.
SetWindowSizePixels(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 in pixels |
| height | The height of the window in pixels |
Both sizes are expressed in pixels.
Use SetWindowSizePixels() if you want the map to be a specific size when saved to a bitmap file, pasted to the clipboard, or used as an OLE object.
For more information on window types, see Windows.
SetWindowSizePixels("Map|First Map", 400, 200)
| Error Type | Meaning |
|---|---|
| NotFound | There is no window of the designated type and name |
| Function | Summary |
|---|---|
| GetAbsoluteWindowSize() | Determines the absolute size of a window in inches |
| GetWindowSize() | Determines the size of a window |
| SetWindowSize() | Sets the size of the specified or currently active window |
| ©2025 Caliper Corporation | www.caliper.com |