SETWSIZE

Purpose:

Sets the size of a Window in normalized Worksheet coordinates.

Syntax:

SETWSIZE(win, xl, yt, width, height, drawmode)

win

-

Optional. The target Window reference. Defaults to the current Window.

xl

-

A real, the left location.

yt

-

A real, the top location.

width

-

A real, the new Window width in normalized coords.

height

-

A real, the new Window height in normalized coords.

drawmode

-

Optional. An integer, the redraw mode:

0:

Redraw Worksheet (default)

1:

Do Not Redraw

2:

Clear Display of All Windows

Returns:

Nothing, the window is resized and repositioned.

Example:

setwsize(W1, 0, 0, .5, .5)

 

resizes W1 to be 1/4 the size of the worksheet.

 

If xl = yt = height = width = -1.0, the Window is auto-sized. For example:

 

setwsize(W1.., -1, -1, -1, -1)

 

resets all the Windows to auto-size mode.

 

DISPLAYALL and adding Windows also reset the Windows to auto-sized.

Example:

(xl, yt, width, height) = getwsize(w1);

setwsize(w1, xl + 0.1, yt, width - 0.2, height);

 

Decreases the width of W1 while centering it within its original Worksheet location.

Remarks:

The size is specified in terms of a normal coordinate system where 0.0, 0.0 is the upper left corner of the Worksheet and 1.0, 1.0 is the lower right corner.

 

See GETWSIZE to return the Worksheet coordinates of a window.

 

See SETWSX and SETWSY to set the size of the displayed Worksheet.

See Also:

COLLAYOUT

GETWSIZE

LAYOUT

MOVEWIN

ROWLAYOUT

SETWSX

SETWSY