OnFocusChanged Event

Applies to TestComplete 14.0, last modified on January 23, 2019

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

A user form component that 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