OnEnter Event

Applies to TestComplete 15.69, last modified on November 13, 2024

Occurs when a component receives the input focus.

Declaration

OnEnter(Sender) Parameters
Sender [in] Required Variant

Applies To

The property applies to the following components:

TcxButton, TcxButtonEdit, TcxCalcEdit, TcxCheckBox, TcxComboBox, TcxCurrencyEdit, TcxDateEdit, TcxGroupBox, TcxLabel, TcxListBox, TcxMemo, TcxMRUEdit, TcxProgressBar, TcxRadioGroup, TcxSpinEdit, TcxTextEdit, TcxTimeEdit, TPanel

Description

The OnEnter event occurs when a component receives the input focus. When the child component gets focus, the OnEnter event is first generated for the parent component and then for the child component. The OnEnter event does not occur when switching between a form and another window.

You can create an event handler for the OnEnter event to perform specific actions when a component becomes active.

Parameters

The event has the following parameter:

Sender

Contains a reference to the user form component that has raised the event. That is, the component that has received the input focus.

Remarks

When the component becomes active, events occur in the following order:

See Also

Handling Events in User Forms
OnClick Event
OnExit Event

Highlight search results