OnExit Event

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

Occurs when a component loses the input focus.

Declaration

OnExit(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 OnExit event occurs when a component loses the input focus. When the child component loses focus, the OnExit event is first generated for the child component and then its parent component. The OnExit event does not occur when switching between a form and another window.

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

Parameters

The event has the following parameter:

Sender

A user form component that lost focus.

Remarks

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

See Also

Handling Events in User Forms
OnEnter Event

Highlight search results