## The `size' property

Two-element numeric vector

Valid for: All displayable objects and System

The `size` property determines the height and width of an object. The units depend on the setting of the object's `scale` property, but default to Character units (16 pixels high and 8 pixels wide), which are the height and typical width of a character in the System font. The first element of the `size` property is the height, and the second the width of the object. (See also the `extent` property, which is the same except that it is expressed in the scale of the object's parent.)

This example resizes an Edit box to be 1.5 units high and 20 wide:

          MyWin.Ed.size„1.5 20

The precise meaning of the `size` property depends on the object class, but in general is the size of the enclosing rectangle. For a Line, the `size` property determines the offset from the start point to the end point of the line.

For the System object, the size property is read-only, and returns the height and width of the screen. See also the `workarea` property which returns the rectangle within the screen size which is available for application use.

Topic: APLX Help : System Classes : Properties : size

[ Previous | Next | Contents | Index ]