This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathclickLoc.lcdoc
More file actions
56 lines (39 loc) · 1.67 KB
/
clickLoc.lcdoc
File metadata and controls
56 lines (39 loc) · 1.67 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
52
53
54
55
Name: clickLoc
Type: function
Syntax: the clickLoc
Syntax: clickLoc()
Summary:
<return|Returns> the position of the most recent mouse click.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, mobile
Example:
the clickLoc
Example:
if the clickLoc is the mouseLoc then send mouseUp to me
Returns:
The <clickLoc> <function> <return|returns> two <integer|integers>
separated by a comma.
Description:
Use the <clickLoc> <function> to determine where a user clicked, or to
determine whether the <mouse pointer> has moved since the last click.
The first item of the returned value is the horizontal distance in
pixels from the left edge of the clicked stack to the location of the
click. (Use the <clickStack> function to identify which <stack> was
clicked.) The second <item> of the <return value|returned value> is the
vertical distance from the top edge of the clicked <stack> to the
location of the click.
The click location is the position of the mouse pointer when the user
pressed the mouse button, not when the user released the button. In
particular, inside a mouseDown handler, the clickLoc returns the
position of the mouse as it was when the mouse down action occurred.
The first item of the <clickLoc> is equal to the <clickH>. The second
<item> is equal to the <clickV>.
References: popup (command), click (command),
function (control structure), mouseClick (function),
selectedLoc (function), clickH (function), clickV (function),
clickStack (function), integer (glossary), mouse pointer (glossary),
return value (glossary), return (glossary), item (keyword),
linkClicked (message), mouseDoubleUp (message), mouseStillDown (message),
stack (object)
Tags: ui