Assigns a delegate to the drawItem event.
public final void addOnDrawItem( DrawItemEventHandler value )
value
The DrawItemEventHandler delegate to be notified when the event occurs. The DrawItemEvent contains a Graphics object in which to paint the tab.
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 owner-drawn tab needs to be redrawn. For a tab to be owner-drawn, the drawMode property must be set to TabDrawMode.OWNERDRAWFIXED.
See Also removeOnDrawItem