Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

Control.addOnLayout

Assigns a delegate to the layout event.

Syntax

public final void addOnLayout( LayoutEventHandler value )

Parameters

value

The LayoutEventHandler delegate to be notified when the event occurs.

Remarks

Passing an event handler as a parameter to this method is equivalent to setting the layout event to that method in the Properties window. The layout event occurs when the control has to lay out its child controls. Actions that make it necessary for a control to lay out its child controls include resizng, showing or hiding child controls, and adding or removing child controls. Use this event to perform any custom layout logic.

See Also   removeOnLayout