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

# TCustomTaskDialog.CommonButtons

Set of common buttons displayed on the Task dialog.

## Declaration

Source position: dialogs.pp line 806

`public property TCustomTaskDialog.CommonButtons : TTaskDialogCommonButtons read FCommonButtons write FCommonButtons default [tcbOk, tcbCancel];`

## Description

CommonButtons is a TTaskDialogCommonButtons property with the set of common buttons displayed on the Task dialog. Values from the TTaskDialogCommonButton enumeration are included in the set to make buttons visible. Values are excluded from the set to remove the buttons. The default value for the property is [tcbOk, tcbCancel], and enables the OK and Cancel buttons for the Task dialog.

CommonButtons is used in conjunction with the Buttons collection, which contains custom button definitions that do not fit the common button definitions. Both CommonButtons and Buttons are used in DoExecute, and passed as arguments to the wrapper in LCLTaskDialog.

## See also

TCustomTaskDialog.Buttons |  | Collection with the buttons for the Task dialog.
TCustomTaskDialog.DoExecute |  | Performs actions to configure and execute the dialog.
TCustomTaskDialog.Execute |  | Displays the task dialog and captures the modal result value.
TTaskDialogCommonButtons |  | Set type used to store values from TTaskDialogCommonButton.
TTaskDialogCommonButton |  | Identifier used for common buttons visible on a Task dialog.