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

# TFileNameEdit.ButtonClick

Performs actions needed when the Button for the control is clicked.

## Declaration

Source position: editbtn.pas line 389

`protected procedure TFileNameEdit.ButtonClick; override;`

## Description

ButtonClick is an overridden method used to perform actions needed when the Button for the control is clicked. For TFileNameEdit, the RunDialog method is called to execute the dialog for the control and to capture it results. When FocusOnButtonClick is set, the FocusAndMaybeSelectAll method is called to give focus to the Edit control in the class.

## See also

TCustomEditButton.ButtonClick |  | Performs actions needed when the button for the control is clicked.
TCustomEditButton.Button |  | TSpeedButton instance used on the edit control.
TCustomEditButton.Edit |  | Edit is the TEbEdit control used to perform direct input for the value in the grouped edit control.
TCustomEditButton.FocusOnButtonClick |  | Indicates if the focus is changed to the Edit control after the Button is clicked.
TFileNameEdit.RunDialog |  | Executes an Open or Save dialog for the DialogKind specified in the control.
TCustomAbstractGroupedEdit.FocusAndMaybeSelectAll