Maptitude GISDK Help |
Sets the position of the a window.
SetWindowPosition(string window_name, integer x_pos, integer y_pos)
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 |
x_pos |
The x-coordinate of the upper-left corner of the window |
y_pos |
The y-coordinate of the upper-left corner of the window |
For map, layout, and editor windows, the position values are expressed as percentages of the Maptitude frame window. For the frame window, the position values are percentages of the Windows desktop.
The values expected by SetWindowPosition() are always between 0 and 100, inclusive.
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 |
Gets the position of a window |
|
Sets the size of the specified or currently active window |
|
Makes a window the currently active window |
|
Makes a map the current map |
©2025 Caliper Corporation | www.caliper.com |