SetWindowSizePixels()
Summary
Sets the size of the specified or currently active window.
Syntax
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 |
Notes
-
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.
Example
SetWindowSizePixels("Map|First Map", 400, 200)
Error Codes
| Error Type | Meaning |
|---|---|
| NotFound | There is no window of the designated type and name |
See Also
| 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 |