OnEnter

Syntax

Sub OnEnter(Sender: Object; Args: IEventArgs);

Begin

//set of operators;

End Sub OnEnter;

Parameters

Sender. Parameter that returns the component that has generated the event.

Args. Parameter that enables the user to determine event parameters.

Description

The OnEnter event occurs when a component gets focused.

Comments

The event does nor occur when switching between forms or applications.

When switching between components placed in different containers, the OnEnter event occurs first of all for the container, then for the component that is placed in the container.

See also:

IControl