GETWSYT

Purpose:

Returns the top coordinate of the Worksheet or Worksheet display area.

Syntax:

GETWSYT(devcoord, region)

devcoord

-

Optional. An integer, If 0 (default), return the normalized coordinate. If 1, return device (pixel) coordinate.

region

-

Optional. An integer. If 0 (default), return the coordinate of the Worksheet. If 1, return the coordinate of the Worksheet display area.

Returns:

A real normalized coordinate or an integer device coordinate.

Example:

setwsy(0.1, 0.9);

ytn = getwsyb;

ytd = getwsyb(1);

 

The height of the displayed Worksheet is adjusted such that the top and bottom sides of the Worksheet are set to 10% of the total Worksheet area height. The height of the displayed Worksheet is 90% of the total Worksheet area height.

 

The variable ytn == 0.1 contains the system independent normalized bottom coordinate of the Worksheet and ytd contains the system dependent pixel coordinate, e.g. ytd == 52.

Remarks:

The returned values are specified in normalized (device independent) or device (pixel based) coordinates. The coordinates of the Worksheet are relative to the upper left corner of the Worksheet display area.

 

If the region parameter is 1, the returned coordinates are for the Worksheet display area, independent of the size of the Worksheet.

 

See GETWSCOORDS to return all the coordinates of the Worksheet.

See Also:

GETMENUCOORDS

GETWSYB

MENUFILE

SETMENUCOORDS

SETWSCOORDS

SETWSX

SETWSY

SETWSX

SETWSY