Overview | Methods | This Package | All Packages
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 an item in an owner-drawn combo box needs to be repainted. The DrawItemEventHandler object passed to this event handler contains a Graphics object that is used to paint the item and a Rectangle object that represents the rectangle in which to paint the item.
See Also removeOnDrawItem