forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinkClicked.lcdoc
More file actions
52 lines (36 loc) · 1.45 KB
/
linkClicked.lcdoc
File metadata and controls
52 lines (36 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Name: linkClicked
Type: message
Syntax: linkClicked <pLinkedTextOfChunk>
Summary:
Sent when the user clicks <grouped text>.
Associations: field
Introduced: 1.1
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
on linkClicked pLink -- open the URL stored with the clicked text
launch url pLink
end linkClicked
Parameters:
pLinkedTextOfChunk:
The linkText property of the clicked text group.
Description:
Handle the <linkClicked> <message> to respond to the user clicking a
<grouped text|text group>.
The <linkClicked> <message> is sent to the <field(keyword)> that was
clicked.
The <linkClicked> <message> is sent only when the <Browse tool> is being
used and is sent only if the <field(keyword)> is <lock|locked>. The
<linkClicked> <message> is not sent if the <field(object)|field's>
<listBehavior> <property> is true.
If the clicked text is grouped text--that is, if its textStyle
<property> contains "link" --then the <linkText> <property> of the
clicked group is sent as the <pLinkedTextOfChunk> <parameter>. If the
text's <linkText> is empty, the <clickText> is sent as the
<pLinkedTextOfChunk> <parameter>.
References: click (command), clickLoc (function), clickText (function),
property (glossary), Browse tool (glossary), grouped text (glossary),
message (glossary), lock (glossary), parameter (glossary), link (keyword),
field (keyword), field (object), listBehavior (property),
lockText (property), linkText (property)
Tags: ui