Log In | Not a Member? | Support | |
SYNTAX ZoomWindow [window] [-b | -s] DESCRIPTION The ZoomWindow command enlarges the specified window to full size (-b) or reduces it to its original, smaller size (-s). If you do not specify a window, ZoomWindow changes the size of the target window. If you do not specify an option, the window toggles to the other size. This mimics the operation of clicking in the window's zoom box. The ZoomWindow command is especially valuable when used in conjunction with StackWindows or TileWindows. INPUT None OUTPUT None 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
ZoomWindow can return the following status codes:
PARAMETERS window Specifies the window. The default window is the target window. OPTIONS -b Enlarges the specified window to full screen size. At full size a window takes up the entire screen. You can change this by specifying different coordinates for the window in the MPW Shell variable {ZoomWindowRect}. These coordinates can be specified in the form t,l,b,r where t, l, b, and r are numbers representing the top, left, bottom, and right coordinates of a rectangle. For example, executing the command line Set ZoomWindowRect 0,0,400,200 prior to executing the ZoomWindow command makes the window enlarge to a rectangle with the coordinates 0,0,400,200. Note that the coordinates (0,0) are located directly below the menu bar, on the left side of the screen. -s Reduces the specified window to its original, smaller size. EXAMPLES The following command line enlarges the target window to full screen size if the window is originally in the small size: ZoomWindow The command below reduces the Worksheet window to its smaller size: ZoomWindow "{Worksheet}" -s SEE ALSO
|