Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxListBox.OnMeasureItem Event

In This Article

Enables you to assign a custom height to each individual item.

#Declaration

Delphi
property OnMeasureItem: TcxListBoxMeasureItemEvent read; write;

#Remarks

The OnMeasureItem event fires if the ListStyle property is set to lbOwnerDrawVariable. This event enables you to change the height of each individual item within the list box. The currently processed item is identified by its index via the AIndex parameter. The height in pixels must be assigned to the Height parameter. The AControl parameter represents the list box control whose item’s height is to be calculated.

Note

if the OnDrawItem event is not handled, items will have assigned heights but will be painted in the default manner.

See Also