Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

Control.addOnEnter

Assigns a delegate to the enter event.

Syntax

public final void addOnEnter( EventHandler value )

Parameters

value

The EventHandler delegate to be notified when the event occurs.

Remarks

Passing an event handler as a parameter to this method is equivalent to setting the enter event to that method in the Properties window.

The enter event occurs when this control or a child of this control becomes the active control of the form: that is, when the focus moves to this control or to a child control of this control from another control on the same form. If this control is the active control for a deactivated form, this event is not triggered when the form is activated. A control becomes the form's active control when the user sets the focus to the control or when the control is set to the active control using the form's setActiveControl method.

See Also   removeOnEnter