TColorBox.ItemHeight property
The default height of an item in the drop-down for the control.
Declaration
property ItemHeight:;Description
ItemHeight is an Integer property which contains the height (in
pixels) used when drawing an item in the drop-down list.
The value for the property is retrieved from the widgetset class when not
already assigned in the class instance, or when using an owner-drawn
Style. Setting a new value for ItemHeight calls the
SetItemHeight method in the widgetset class for owner-drawn Styles.
The property value is updated when the LM_MeasureItem message is
handled for the control. When variable height items are enabled in Style, the
OnMeasureItem event handler must be implemented to calculate the
height for individual value in Items.
ItemHeight,
ItemWidth,
Items, and
DropDownCount are used in the
AdjustDropDown method to
determine the dimensions for the drop-down list in the control.
This description is the one of StdCtrls.TCustomComboBox.ItemHeight.
See also
- OnMeasureItem
- Style
- Items
- ItemWidth
- DropDownCount
- AdjustDropDown
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
