forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclickH.lcdoc
More file actions
36 lines (20 loc) · 1.15 KB
/
clickH.lcdoc
File metadata and controls
36 lines (20 loc) · 1.15 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
Name: clickH
Type: function
Syntax: the clickH
Syntax: clickH()
Summary: <return|Returns> the horizontal position of the most recent mouse click.
Introduced: 1.0
OS: mac,windows,linux,ios,android
Platforms: desktop,web,mobile
Example:
the clickH
Example:
put the clickH div 2 into whichHalf
Returns: The <clickH> <function> <return|returns> a <non-negative> <integer>.
Description:
Use the <clickH> <function> to find out where the user last clicked.
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 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 clickH returns the position of the mouse as it was when the mouseDown action ocurred.
This function is equal to item 1 of the <clickLoc> <function>.
References: function (control_st), integer (keyword), stack (object), clickLoc (function), clickV (function), mouseH (function), return (glossary), non-negative (glossary)
Tags: ui