linkClicked

linkClicked(textbox: JadeRichText input;
            link:    String);

The linkClicked event of the JadeRichText class occurs when the user clicks on a URL within the text of the control.

The link parameter contains the URL text.

The following example attempts to open the URL specified by the link parameter in the default browser.

jrtResults_linkClicked(textbox: JadeRichText input; link: String) updating;
vars
    result : Integer;
begin
    result := call josShellExecute(getWindowHandle(), 'open', link, null, null, 1);
    if result <= 32 then
        app.msgBox('You do not have a default browser or the URL '
                   & link & ' could not be found', 'Error',
                   MsgBox_Exclamation_Mark_Icon);
        return;
    endif;
end;