Fandom

Livecode Wiki

LinkClicked

2,161pages on
this wiki
Add New Page
Comments0 Share
Sent when the user clicks linked linked text.
LinkText

Text with links

Syntax:

on linkClicked <linkedTextOfChunk>
  ...
end linkClicked

Examples:

on linkClicked pLink -- open the URL stored with the clicked text
   launch url pLink
end linkClicked

Handle the linkClicked message to respond to the user clicking a link.

The linkClicked is sent to the field that was clicked.

The linkClicked message is sent only when the Browse tool is being used and is sent only if the field is locked. The linkClicked is not sent if the field's listBehavior property is true.

If the clicked text is a link (that is, if its textStyle property contains "link") then the linkText property of the clicked group is sent as the linkedTextOfChunk parameter. If the text of a link is empty, then the text itself is sent as the linkedTextOfChunk parameter.

Parameters:

  • linkedTextOfChunk: The linkText property of the clicked text group.

See also: field (object), listBehavior (property), lockText (property), linkText (property),

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.