TabBase.addOnDrawItem

Overview | Methods | This Package | All Packages

TabBase.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. The DrawItemEvent contains a Graphics object in which to paint the tab.

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 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