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

# TCustomTaskDialog.Text

Text displayed as main content for the Task dialog.

## Declaration

Source position: dialogs.pp line 840

`public property TCustomTaskDialog.Text : TTranslateString read FText write FText;`

## Description

Text is a TTranslateString property with the text displayed in the main content area on the Task dialog. Its value can be localized using the standard LCL translation facilities. It can contain multi-line text when line ending characters (#13,#10) are embedded in the String value. For example:

    ADialog.Text := 'Please read and accept the Terms of Service. ' + #10 +
    'You must agree before the application can be installed.';

Or, the multi-line value can be entered in the object inspector using the property editor at design-time.

Text, ExpandedText, and FooterText allow an HTML-like hyperlinking capability using the <a href="linktarget">Link Text</a> notation. The feature must be enabled by including tfEnableHyperlinks in the Flags property.

Use ExpandedText to set the content in the collapsible area on the Task dialog. Use tfExpandFooterArea in the Flags property to position the expanded text in the footer area.

## Version info

Multi-line property editors in the object inspector were enabled in Lazarus version 2.2.0.

## See also

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.
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.