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

# TCustomTaskDialog.CollapseButtonCaption

Caption text for the "expando" button on the task dialog.

## Declaration

Source position: dialogs.pp line 822

`public property TCustomTaskDialog.CollapseButtonCaption : TTranslateString read FCollapseButtonCaption write FCollapseButtonCaption;`

## Description

CollapseButtonCaption is a TTranslateString property with the text displayed next to the "expando" button for the dialog when Expanded is set to True. It describes the action performed the next time the button is clicked. When omitted (or set to an empty string), the value 'Hide details' is used.

The property value can be localized using the translation facilities provided in the Lazarus IDE when enabled for a project, or by manually calling the translation routines in LazUtils.

Use ExpandButtonCaption to specify the caption displayed when the content in ExpandedText is collapsed (Expanded is set to False).

## Version info

Added in LCL version 4.0.

## See also

TCustomTaskDialog.ExpandButtonCaption |  | Caption displayed for the expand/collapse button on the dialog.
TCustomTaskDialog.Expanded |  | Indicates the expanded or collapsed state for the ExpandedText on the task dialog form.
TCustomTaskDialog.ExpandedText |  | Text that is displayed in the expandable / collapsible area on the Task dialog.
TTranslateString |  | Alias for the String type.