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

# TDirectoryEdit.ButtonClick

Implements the button handler for the Button in the control.

## Declaration

Source position: editbtn.pas line 501

`protected procedure TDirectoryEdit.ButtonClick; override;`

## Description

ButtonClick is an overridden method used to implement the button click handler for the Button in the control. ButtonClick calls the inherited method, and calls RunDialog to display the dialog and capture the directory name. When the dialog has completed, and FocusOnButtonClick is set to True, the FocusAndMaybeSelectAll method is called to give focus to the Edit control and select text as needed.

ButtonClick is called from the BuddyClick method in the ancestor class.

## See also

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.
TCustomEditButton.BuddyClick |  | Performs actions needed when the Button for the control is clicked.
TDirectoryEdit.RunDialog |  | Executes the dialog for the control and stores the return value.
TCustomAbstractGroupedEdit.FocusAndMaybeSelectAll