Type: Real
Availability: Read or write at any time
The height property of the Window class contains the dimensions of an object. Measurements are calculated using the following.
For controls, the external height of the control
For forms, the external height of the form, including the borders and title bar
For a form, the height property is always in pixels. For a control, the scaleMode property units of the parent control determine the height. The scaleMode property defaults to pixels. For a form or control, the value for the height property changes as the object is sized by the user or by logic. The maximum limit for all objects is system-dependent. (See also the parentAspect property.)
You cannot change this property for CheckBox, OptionButton, and ComboBox controls whose style property is not Style_Simple (1).
If the value of the height property plus the value of the top property is greater than 32,767 pixels, the resulting window extents may be unpredictable.
Windows limits forms and controls to a maximum height of 32,767 pixels. Setting a value larger than the maximum height results in a value of 32,767 pixels being used.
The code fragments in the following examples show the use of the height property.
table1.height := table1.rowHeight[1] * table1.rows; startName.top := theTable.top + theTable.height + 10; pictureEnlarged.height := (pictureNormal.height/(x - xStart)) * 100;