forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclickH.xml
More file actions
47 lines (47 loc) · 2.04 KB
/
Copy pathclickH.xml
File metadata and controls
47 lines (47 loc) · 2.04 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
<doc>
<legacy_id>1884</legacy_id>
<name>clickH</name>
<type>function</type>
<syntax>
<example>the clickH</example>
<example>clickH()</example>
</syntax>
<library></library>
<objects>
</objects>
<synonyms>
</synonyms>
<classification>
<category>User Interaction</category>
</classification>
<references>
<function tag="clickLoc">clickLoc Function</function>
<function tag="clickV">clickV Function</function>
<function tag="mouseH">mouseH Function</function>
</references>
<history>
<introduced version="1.0">Added.</introduced>
</history>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<web/>
<mobile/>
</classes>
<security>
</security>
<summary><glossary tag="return">Returns</glossary> the horizontal position of the most recent mouse click.</summary>
<examples>
<example>the clickH</example>
<example>put the clickH div 2 into whichHalf</example>
</examples>
<description>
<p>Use the <b>clickH</b> <control_st tag="function">function</control_st> to find out where the user last clicked.</p><p/><p><b>Value:</b></p><p>The <b>clickH</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a <href tag="../glossary/nondashnegative.xml">non-negative</href> <keyword tag="integer">integer</keyword>.</p><p/><p><b>Comments:</b></p><p>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 <b>clickStack</b> function to identify which <object tag="stack">stack</object> was clicked.)</p><p/><p>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.</p><p/><p>This function is equal to item 1 of the <b>clickLoc</b> <control_st tag="function">function</control_st>.</p>
</description>
</doc>