GETWSIZE

Purpose:

Returns a string containing the size of a specified Window.

Syntax:

GETWSIZE(win)

(xl, yt, width, height) = GETWSIZE(win)

win

-

Optional. Window reference. Defaults to the current Window.

Returns:

A string containing the corresponding SETWSIZE command.

 

(xl, yt, width, height) = GETWSIZE(win) returns the upper left X and Y coordinates, width and height of the window in normal coordinates.

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.

Example:

If W1 is 1/2 the size of the Worksheet,

 

getwsize(W1)

 

returns the following string:

 

setwsize(0, 0, 1, 0.5)

Remarks:

The string returned contains the SETWSIZE command which you can use to set the Window to the current size. The size is specified in terms of a normal coordinate system where 0.0, 0.0 represents the upper left corner of the Worksheet and 1.0, 1.0 represents the lower right corner of the Worksheet.

See Also:

MOVEWIN

SETWSIZE