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

the mouseH

mouseH()

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

the mouseH
add the mouseH to totalWidth

Additional Comments
Expander triangle

Use the mouseH function to find out where the mouse pointer is.

Value:

The mouseH function returns an integer.

Comments:

The returned value is the horizontal distance in pixels from the left edge of the current stack to the location of the mouse pointer. (Use the defaultStack property to identify the current stack.)

If the mouseH is positive, the pointer is to the right of the leftmost edge of the stack window. If the number is negative, the pointer is to the left of the stack window.

This function is equal to item 1 of the mouseLoc function.

Note: When in a mouseDown handler, you can use the clickH function to get the position of the mouse as it was when the mouseDown actiion occured.

Tip: The mouseMove message sends the mouse's horizontal position as a parameter. This means that in a mouseMovehandler, normally it's not necessary to use the mouseH function.

User Comments
Expander triangle