RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBComboBox.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. 

 

ItemHeight 

Items 

OnDrawItem 

Style

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!