Error getting tags :
error 404Error getting tags :
error 404 mouseLoc | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
mouseLoc
Basics
Expander triangle
Type
Function
Syntax

the mouseLoc

mouseLoc()

Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the location of the mouse pointer.
Examples

the mouseLoc
click at the mouseLoc

Additional Comments
Expander triangle

Use the mouseLoc function to find out where the mouse is.

Value:

The mouseLoc function returns two integers separated by a comma.

Comments:

The first item of the return value is the horizontal distance in pixels from the left edge of the current stack to the location of the mouse. The second item of the return value is the vertical distance from the top edge of the current stack to the location of the mouse. (Use the defaultStack property to identify the current stack.)

The first item of the mouseLoc is equal to the mouseH. The second item is equal to the mouseV.

Note: When in a mouseDown handler, you can use the clickLoc function to get the position of the mouse as it was when the mouseDown action ocurred

Tip: The mouseMovemessage sends the current mouse position as a parameter. This means that in a mouseMovehandler, normally it's not necessary to use the mouseLocfunction.

User Comments
Expander triangle