Vcl.StdCtrls.TCustomComboBox.OnMeasureItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnMeasureItem: TMeasureItemEvent read FOnMeasureItem write FOnMeasureItem;

C++

__property TMeasureItemEvent OnMeasureItem = {read=FOnMeasureItem, write=FOnMeasureItem};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomComboBox

Description

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.

See Also