OnFocusChanged Event

Applies to TestComplete 15.20, last modified on January 19, 2022

Occurs when a component receives or loses the input focus.

Declaration

OnFocusChanged(Sender) Parameters
Sender [in] Required Variant

Applies To

The event applies to the following components:

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

Description

The OnFocusChanged event occurs when a component receives or loses the input focus. You can create an event handler for this event to perform specific actions when the component receives or loses focus.

Parameters

The event has the following parameter:

Sender

Contains a reference to the user form component that has raised the event.

Remarks

When the component receives focus, events occur in the following order:

When the component loses focus, events occur in the following order:

See Also

Handling Events in User Forms

Highlight search results