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

# TCustomBitBtn.Click

Performs actions needed when the button is clicked.

## Declaration

Source position: buttons.pp line 209

`public procedure TCustomBitBtn.Click; override;`

## Description

Click is an overridden method in TCustomBitBtn. It ensures that the correct actions are performed based on the value in the Kind property. When Kind is set to bkClose, the non-nested parent form is closed for the following conditions:

- ModalResult is set to mrNone, or
- ModalResult is mrCancel and the parent form is displayed as a modal dialog.

If Kind has any other value, the inherited Click method is called to determine the ModalResult and signal the OnChange event handler (when assigned).

Click is called when the DialogChar method handles an accelerator key for the control, when the Action for the control is executed, and when a mouse click event is handled for the control.

## See also

TCustomButton.Click |  | Handles a button click event for the control.
TButtonControl.Click |  | Performs actions needed when a click message is handled for the control.
TControl.Click |  | Signals OnClick and/or executes the ActionLink when the control has been clicked.