Previous Next Chapter

SIZEWINDOW command

Purpose:

This command will attempt to change the size of a window.

Format:

SIZEWINDOW [WINDOW] <ROOT|ACTIVE|Drawer name> [[WIDTH] <new window width>] [[HEIGHT] <new window height>]

Template:

SIZEWINDOW WINDOW,WIDTH/N,HEIGHT/N

Parameters:

WINDOW

Either ROOT" to resize the Workbench root window (where volume icons and AppIcons live), ACTIVE" to resize the currently active Workbench window or the fully qualified name of a drawer window to change. Note that the drawer window must already be open.

If no WINDOW parameter is specified, this command will try to operate on the currently active Workbench window.

WIDTH

New window width.

HEIGHT

New window height.

Errors:

10 - If the named window cannot be resized; this can also happen if you specified ACTIVE" as the window name and none of the Workbench windows is currently active. The error code will be placed in the WORKBENCH.LASTERROR variable.

Result:

-

Notes:

If you choose to have a window resized that is neither the root nor the active window you must make sure that the window name is given as a fully qualified path name. For example Work:" is a fully qualified name, and so is SYS:Utilities". Devs/Printers" would not be a fully qualified name. A fully qualified name always contains the name of an assignment, a volume or a device.

Example:

/* Change the root window size to 200100 pixels. */
ADDRESS workbench

SIZEWINDOW root 30 WIDTH 200 HEIGHT 100

/* Resize the currently active window. */
SIZEWINDOW active 200 100

Top Previous Next Chapter