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

# TCustomTaskDialog.ExpandButtonCaption

Caption displayed for the expand/collapse button on the dialog.

## Declaration

Source position: dialogs.pp line 824

`public property TCustomTaskDialog.ExpandButtonCaption : TTranslateString read FExpandButtonCaption write FExpandButtonCaption;`

## Description

ExpandButtonCaption is a TTranslateString property with the caption text displayed beside the button used to expand or collapse the ExpandedText on the Task dialog. The property value can be localized using the standard LCL translation facilities.

The default value for the property is an empty String (''), and cause the values "See details" or "Hide details" to be used on the Task dialog (when the language is English).

Use CollapseButtonCaption to assign the caption displayed when ExpandedText is Expanded.

Use the Flags property to control the position (tfExpandFooterArea) or the expanded / collapsed state (tfExpandedByDefault) for the ExpandedText on the Task dialog.

## Version info

Added in LCL version 4.0.

## See also

TCustomTaskDialog.ExpandedText |  | Text that is displayed in the expandable / collapsible area on the Task dialog.
TCustomTaskDialog.CollapseButtonCaption |  | Caption text for the "expando" button on the task dialog.
TCustomTaskDialog.Flags |  | Set of options enabled for the Task dialog.
TTaskDialogFlags |  | Set type used to store values from the TTaskDialogFlag enumeration.
TTaskDialogFlag |  | Represents options that can be enabled for TTaskDialog.
TTranslateString |  | Alias for the String type.