forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclickV.lcdoc
More file actions
45 lines (28 loc) · 1.12 KB
/
clickV.lcdoc
File metadata and controls
45 lines (28 loc) · 1.12 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
Name: clickV
Type: function
Syntax: the clickV
Syntax: clickV()
Summary:
<return|Returns> the vertical position of the most recent mouse click.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, mobile
Example:
the clickV
Example:
if the clickV > the bottom of stack "window" then beep
Returns:
The <clickV> <function> <return|returns> a positive <integer>.
Description:
Use the <clickV> <function> to find out where the user last clicked.
The returned value is the vertical distance in pixels from the top 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 <clickV> returns the
position of the mouse as it was when the mouseDown action occurred.
This function is equal to item 2 of the clickLoc <function>.
References: function (control structure), mouseV (function),
clickH (function), return (glossary), integer (keyword), stack (object)
Tags: ui