RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComboBox.OnMeasureItem Event

Occurs when an item in a csOwnerDrawVariable combo box needs to be redisplayed.

Pascal
property OnMeasureItem: TMeasureItemEvent;
C++
__property TMeasureItemEvent OnMeasureItem;

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!