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

TCustomTaskDialog.OnHyperlinkClicked

Event handler signalled when a hyperlink in one of the text areas has been clicked.

Declaration

Source position: dialogs.pp line 839

public property TCustomTaskDialog.OnHyperlinkClicked : TNotifyEvent
  read FOnHyperlinkClicked
  write FOnHyperlinkClicked;

Description

OnHyperlinkClicked is a TNotifyEvent property with the event handler signalled when a hyperlink in one of the text areas on the task dialog has been clicked. The URL property contains the target for the hyperlink in the event notification.

Hyperlinks may appear in the Text, ExpandedText, and FooterText properties. They use the common HTML Anchor notation like:

<a href="https://www.lazarus-ide.org/">Lazarus website</a>

Include tfEnableHyperlinks in the Flags property to enable display and handling for hyperlinks in the text areas on the dialog.

Remark: Hyperlinks are automatically disabled when tfQuery or tfSimpleQuery are included in Flags. The textual content for hyperlinks is still displayed - but without formatting and event handler notifications.

See also

TCustomTaskDialog.Text

  

Text displayed as main content for the Task dialog.

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

  

Universal Resource Locator (or identifier) for a hyperlink clicked 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.


Version 4.0 Generated 2025-05-03 Home