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

# TTaskDialogButtonItem

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a button definition used for a button in TCustomTaskDialog.

## Declaration

Source position: dialogs.pp line 651

`type TTaskDialogButtonItem = class(TTaskDialogBaseButtonItem)`
`public`
`constructor Create(); override;` |  | Constructor for the class instance.
`published`
`property CommandLinkHint: TTranslateString;` |  | Provides additional information about the button when command links are enabled in a task dialog.
`property ModalResult: TModalResult;` |  | Modal result value returned when the button is clicked.
`end;`

## Inheritance

`TTaskDialogButtonItem` |  | Implements a button definition used for a button in TCustomTaskDialog.
`TTaskDialogBaseButtonItem` |  | Defines the base class for a custom button displayed on a Task dialog.
`TCollectionItem`
?
`TObject`

## Description

TTaskDialogButtonItem is a TTaskDialogBaseButtonItem descendant used to define and store buttons created in TCustomTaskDialog / TTaskDialog. It provides an overridden constructor which creates an object inspector-friendly name for the button item. It also sets the visibility for the ModalResult property to published.

TTaskDialogButtonItem is the type used for the Button property in TCustomTaskDialog, and maintained in its Buttons collection.

## See also

TCustomTaskDialog.Button |  | Not used in the current LCL version.
TCustomTaskDialog.Buttons |  | Collection with the buttons for the Task dialog.
TTaskDialogBaseButtonItem |  | Defines the base class for a custom button displayed on a Task dialog.