RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StdCtrls.TMeasureItemEvent Type

TMeasureItemEvent is the type for the OnMeasureItem event handler.

Pascal
TMeasureItemEvent = procedure (Control: TWinControl; Index: Integer; var Height: Integer) of object;
C++
(Control: TWinControl; Index: Integer; var Height: Integer) ( TMeasureItemEvent)();

StdCtrls

TMeasureItemEvent is the type for event handlers on custom-drawn controls that allow different items in a list to have different heights. 

Control is a reference to the control that contains the item. 

Index is the index of the item in the Items property. 

Height is the default height of the item, in pixels. The event handler can reset Height to the appropriate value. 

 

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