Microsoft SDK for Java

Control.addOnPaint

Assigns a delegate to the paint event.

Syntax

public final void addOnPaint( PaintEventHandler value )

Parameters

value

The PaintEventHandler delegate to be notified when the event occurs.

Remarks

Passing an event handler as a parameter to this method is equivalent to setting the paint event to that method in the Properties window. The paint event occurs when the control makes a request to repaint a portion of its client area.

See Also   removeOnPaint

© 1999 Microsoft Corporation. All rights reserved. Terms of use.