Log In | Not a Member? | Support | |
SYNTAX SizeWindow [h v] [window] DESCRIPTION The SizeWindow command sets the size of the specified window to h by v pixels. In addition to setting the size of a window, you can use this command to display the size of a window. INPUT None OUTPUT None, unless you omit the h and v parameters, in which case, the dimensions of the specified window are displayed in the form of a SizeWindow command. ALIAS RESOLUTION This command resolves Finder aliases that are part of a partial or complete pathname substituted for the window name. The resolved pathname must specify the name of an open window. Note that using a shell variable to designate a window is usually faster than requiring MPW to resolve a Finder alias. STATUS
SizeWindow can return the following status codes:
PARAMETERS h v Specifies the horizontal and vertical dimensions of the window in pixels, where h and v are nonnegative integers. Remember to use a space to separate h and v on the command line. The minimum value for h is 160. The minimum value for v is 98. If you specify smaller values they will be set to the minimum values. window Specifies the window to be sized. If you omit this parameter, SizeWindow sizes the target window. OPTIONS None EXAMPLES The following command line makes the target window 200 pixels square: SizeWindow 200 200 Omitting the h and v parameters causes SizeWindow to display the size of the specified window. The command line SizeWindow "{Active}" displays the size of the active window as a SizeWindow command. For example, SizeWindow 490 251 Sample2 The next command line makes the Worksheet window 500 x 100 pixels: SizeWindow 500 100 "{Worksheet}" SEE ALSO
|