API:Vcl.StdCtrls.TComboBox.OnMeasureItem
Delphi
property OnMeasureItem: TMeasureItemEvent read FOnMeasureItem write FOnMeasureItem;
C++
__property OnMeasureItem;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TComboBox |
Description
Occurs when an item in a csOwnerDrawVariable combo box needs to be redisplayed.
Vcl.StdCtrls.TComboBox.OnMeasureItem inherits from Vcl.StdCtrls.TCustomComboBox.OnMeasureItem. All content below this line refers to Vcl.StdCtrls.TCustomComboBox.OnMeasureItem.
Occurs when an item in a csOwnerDrawVariable combo box needs to be redisplayed.
When Style is set to csOwnerDrawVariable, the OnMeasureItem event precedes OnDrawItem. Write an OnMeasureItem event handler to specify the height, in pixels, needed to draw an item in the drop-down list.
OnMeasureItem is of type Vcl.StdCtrls.TMeasureItemEvent which contains three parameters describing the item to measure.