selLink

Type: Boolean

Availability: Not available at design time, read or write at run time

The selLink property of the JadeRichText control specifies whether the selected text is all marked as a URL link. You can use this property to define user‑friendly name links. If the property is set to true, when the user clicks on the text, the linkClicked event method is called for the control and the event receives the text of the link. See also the autoURLDetect property, which when true, causes this process to occur automatically for text that can be recognized as a URL.

Set the selLink property to:

If the selected text is a mixture of a link and a non‑link, this property returns false.

The following code fragments are examples of the selLink property.

rtfControl.selStart := 10;
rtfControl.selLength := 6;
rtfControl.selLink := true; 
// causes the characters 10 through 15 to be drawn as a URL

rtfControl.selLink := true;
rtfControl.load("Monday ", JadeRichText.Load_Append);
// causes the appended text 'Monday' to be drawn as an underlined blue URL