Height Property

Object List Next Object

Defined By:
Screen

Description:

Determines the vertical size of an object. In combination with the Width property, it determines the dimensions of an object.

Settings:

The height property of all objects is between 0 and a maximum number that is established by the system.

Details:

You can set the vertical size of an object directly, by entering the precise value in the property browser or code, or indirectly, by sizing the object with the mouse. Make sure that the objects you create will fit on screens with resolutions of 640 x 480 and 800 x 600.

Screen objects are always measured in twips. A control is measured in the units of measurement specified by the ScaleMode property of the control's container. Any time the ScaleMode property changes, the value of the Height property is affected accordingly.

The Height property of a screen object returns the height of the screen, based on the resolution of the computer display as set by the user from the system Control Panel. You may set the form's height greater than the height of the Screen object, but the form will not appear on the display any larger than the display can accommodate.

The Height property can be used in combination with the Left, Top, and Width properties to determine the size and position of an object.

Don
t confuse Left, Top, Width, and Height with ScaleLeft, ScaleTop, ScaleWidth, and ScaleHeight. The Scale properties determine the coordinate system of container objects, such as forms, while the size and position properties affect the placement and extent of forms and controls on the screen. Setting the Scale properties will never move a window on the screen or change its size, while setting a size or position property always does.

Data Type: Single (Read Only)

See Also:

Height, Width properties