clickH | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the horizontal position of the most recent mouse click. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: integer Control Structure: function Object: stack Function: clickLoc, clickV, mouseH Glossary: return, non-negative | ||||||
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. | ||||||
Tags | ui |