Skip to main content

MoveWindow

MoveWindow [/C/F/I/M/P=procedureTitleAsName /W=winName] left, top, right, bottom

The MoveWindow operation moves the target or specified window to the given coordinates.

Flags

/CMoves command window.
/FMoves the Igor application "frame". The frame is then adjusted so that no part of it is offscreen.
/ICoordinates are in inches.
/MCoordinates are in centimeters.
/P=procedureTitleAsName
Moves the specified procedure window.
/W=winNameMoves the named window.

Details

Note that neither winName nor procedureTitleAsName is a string but is the actual window name or procedure window title. If the procedure window's title (procedure windows don't have names) has a space in it, use $ and quotes:

MoveWindow/P=$"Log Histogram" 0,0,600,400

If /W, /C, /F and /P are omitted, MoveWindow moves the target window.

The coordinates are in points if neither /I nor /M is used.

In Igor Pro 7.00 or later, to move the window without changing its size, pass -1 for both right and bottom.

You can use the MoveWindow operation to minimize, restore, or maximize a window by specifying 0, 1, or 2 for all of the coordinates, as follows:

MoveWindow 0, 0, 0, 0	// Minimize target window.
MoveWindow 1, 1, 1, 1 // Restore target window.
MoveWindow 2, 2, 2, 2 // Maximize target window.

If the window size has been constrained by SetWindow sizeLimit, those limits are silently applied to the size set by MoveWindow.

See Also

DoWindow, MoveSubwindow