SetWindowPos System Command

SETWINDOWPOS System Commands

Sets the size and position of an open document window.

setwindowpos [AT x y] [SIZE width height] [WINDOW name]

AT/i Sets the window position in pixels.

SIZE/i Sets the window size in pixels.

WINDOW is the window name. Default=current.

Notes:

If the AT pointy coordinate is set to -1, the window will open immediately below the screen title bar, regardless of the screen font height. If either SIZE coordinate is set to 10000, the window will open at the maximum size of the screen in that direction.

This command does not affect future document windows. It sets the position and size of an open document window only. Use the SETWINDOWDEFAULTS command to set the position and size of future document windows.

Examples:

setwindowpos at 0 -1 size 640 10000

 

SetWindowPos  Command Definition  url:PGScmd/setwindowpos
  created:2006-03-31 10:53:01   last updated:2006-03-31 10:53:01
  Copyright © 1985-2017 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For SetWindowPos
Dan Kilroy wrote...2006-05-04 17:14:45

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Gets the {...} .

SetWindowPos (AT x y SIZE w h [WINDOW document-window])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For SetWindowPos