OnChange Event

Applies to TestComplete 15.45, last modified on December 01, 2022

Occurs when text displayed by the component or the component’s state is changed.

Declaration

OnChange(Sender) Parameters
Sender [in] Required Variant

Applies To

The event applies to the following components:

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

Description

The OnChange event occurs when the text or value displayed by the component is changed. For the TcxCheckBox component, this event is generated when the check state of a check box is changed. For the TcxRadioGroup component, this event occurs when the radio group’s selected item is changed.

You can create an event handler for this event to perform specific actions upon changing the component’s display text or selection state.

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 whose text or selection state was changed.

See Also

Handling Events in User Forms
OnEditValueChanged Event

Highlight search results