[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'StdCtrls' (#lcl)

# TButtonControl.OnChange

Event handler signalled when the button control is clicked.

## Declaration

Source position: stdctrls.pp line 1193

`protected property TButtonControl.OnChange : TNotifyEvent read FOnChange write FOnChange;`

## Description

OnChange is signalled from the DoOnChange method, and occurs when the Click method is called for the class instance. It is signalled after the OnEditingDone event handler. The Sender argument contains the current button control class instance (Self).

The OnClick event handler can also be used for the notification when ClicksDisabled is set to False.

## See also

TButtonControl.Click |  | Performs actions needed when a click message is handled for the control.
TButtonControl.DoOnChange |  | Signals the OnEditingDone and OnChange event handlers (when assigned).
TButtonControl.ClicksDisabled |  | Disables calling the Click method without changing the Enabled state for the control.
TControl.OnEditingDone |  | Event handler signalled when editing is completed for the control.
TControl.OnClick |  | Notification handler for mouse clicks.