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

# TCustomTaskDialog.MainIcon

Icon displayed beside the Title for the dialog.

## Declaration

Source position: dialogs.pp line 829

`public property TCustomTaskDialog.MainIcon : TTaskDialogIcon read FMainIcon write FMainIcon default tdiInformation;`

## Description

MainIcon is a TTaskDialogIcon with a value that identifies the icon displayed beside the Title for the Task dialog. The default value is tdiInformation, and causes a blue circle with a Question Mark to be displayed as the icon. See TTaskDialogIcon for more information about the values in the enumeration and their meanings.

## See also

TCustomTaskDialog.Title |  | Text displayed at the top of dialog adjacent to the main icon.
TCustomTaskDialog.Text |  | Text displayed as main content for the Task dialog.
TCustomTaskDialog.ExpandedText |  | Text that is displayed in the expandable / collapsible area on the Task dialog.
TCustomTaskDialog.FooterText |  | Text that is displayed in the footer area on the Task dialog.
TCustomTaskDialog.Flags |  | Set of options enabled for the Task dialog.
TTaskDialogIcon |  | Identifier for an icon displayed on a Task dialog.