ListBox.addOnDrawItem

Overview | Methods | Fields | This Package | All Packages

ListBox.addOnDrawItem

Assigns a delegate to the drawItem event.

Syntax

public final void addOnDrawItem( DrawItemEventHandler value )

Parameters

value

The DrawItemEventHandler delegate to be notified when the event occurs.

Remarks

Passing an event handler as a parameter to this method is equivalent to setting the drawItem event to that method in the Properties window. The drawItem event occurs when a visual aspect of an owner-drawn list box changes. For a list box to be owner-drawn, its drawMode property must be set to DrawMode.OWNERDRAWFIXED or DrawMode.OWNERDRAWVARIABLE. It must also contain a Graphics object in which to paint the item.

See Also   removeOnDrawItem