OnEnter Event

Applies to TestComplete 14.10, last modified on June 5, 2019

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

A user form component that became active.

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