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

# TCustomTaskDialog.Expanded

Indicates the expanded or collapsed state for the ExpandedText on the task dialog form.

## Declaration

Source position: dialogs.pp line 845

`public property TCustomTaskDialog.Expanded : Boolean read FExpanded;`

## Description

Expanded is a read-only Boolean property which indicates whether the content in ExpandedText is currently displayed in the expanded or collapsed state. The property value is updated each time the expando control (expand / collapse indicator) is clicked.

When set to Trueb>, the values in ExpandedText ar displayed in the expanded state on its text area. Otherwise the values in ExpandText are not visible on the dialog.

Remark: | Expanded is always True when tfquery or tfSimpleQuery is included in the Flags for the dialog. In addition, the expando control is not displayed on the dialog.

Use the OnExpanded event handler to perform actions needed after the property value has been updated in 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.Flags |  | Set of options enabled for the Task dialog.
TCustomTaskDialog.OnExpanded |  | Event handler signalled when the ExpandedText on the dialog has been expanded or collapsed.
TTaskDialogFlag |  | Represents options that can be enabled for TTaskDialog.
TTaskDialogFlags |  | Set type used to store values from the TTaskDialogFlag enumeration.