Livecode Wiki

Returns the vertical position of the most recent mouse click.

Built-in Function handler[]




the clickV
if the clickV > the bottom of stack "window" then beep

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.

See also: clickH (function),stack (object),