Sign in Join
FPDoc Onlineexperiment

TCustomTaskDialog.ExpandedText property

Member of TCustomTaskDialogpublicIn unit Dialogs

Text that is displayed in the expandable / collapsible area on the Task dialog.

Declaration

pascal
property ExpandedText: TTranslateString read FExpandedText write FExpandedText;

Description

ExpandedText is a TTranslateString property with the text displayed in the expandable / collapsible 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.ExpandedText := 'Please read the Terms of Service.'+#10+
  'Available on our Website.';

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 (as seen in the previous code example). The feature must be enabled by including tfEnableHyperlinks in the Flags property. Use tfExpandFooterArea to control the position for the expanded text, or tfExpandedByDefault to expand or collapse the text area.

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

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.