Skip to main content

TcxCustomCheckListBox.OnMeasureItem Event

Occurs when it is necessary to repaint an item.

Declaration

property OnMeasureItem: TMeasureItemEvent read; write;

Remarks

The OnMeasureItem event allows you to change the height of individual list box items. This can be useful when you perform custom painting by handling the OnDrawItem event. OnMeasureItem is called whenever an item should be repainted. The default height is passed as the Height parameter. You can assign another value to the parameter in order to change its height.

The item referenced by the event is identified by the AIndex parameter. This represents the index of the item in the Items collection. The editor itself is passed as the Control parameter.

Note

This event is obsolete.** Do not use this event to specify the item’s height.

See Also