ComboBox.addOnMeasureItem

Overview | Methods | This Package | All Packages

ComboBox.addOnMeasureItem

Assigns a delegate to the measureItem event.

Syntax

public final void addOnMeasureItem( MeasureItemEventHandler value )

Parameters

value

The MeasureItemEventHandler delegate to be notified when the event occurs.

Remarks

Passing an event handler as a parameter to this method is equivalent to setting the measureItem event to that method in the Properties window. The measureItem event occurs when an owner-drawn combo box with items of variable size is created and the sizes of the list items are queried. This event occurs only once for owner-drawn list boxes with items of fixed size. Use the setItemHeight method to set the item size for this type of list box.

See Also   removeOnMeasureItem