Error getting tags :
error 404Error getting tags :
error 404 mouseStillDown | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
mouseStillDown
Basics
Expander triangle
Type
Message
Syntax
mouseStillDown mouseButtonNumber
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent periodically while the mouse button is being held down.
Examples

Additional Comments
Expander triangle

You can handle the mouseStillDown message to perform an action when the user holds the mouse button down.

Parameters:

The mouseButtonNumber specifies which mouse button was pressed:

* 1 is the mouse button on Mac OS systems and the left button on Windows and Unix systems.

* 2 is the middle button on Unix systems.

* 3 is the right button on Windows and Unix systems and Control-click on Mac OS systems.

Comments:

The mouseStillDown message is sent to the control that was originally clicked, or to the card if no control was under the mouse pointer.

The period between mouseStillDown messages is specified by the idleRate and idleTicks properties.

The mouseStillDown message is sent only when the Browse tool is being used. If an unlocked field is clicked with mouse button 1 or 2, no mouseStillDown message is sent.

Usually, it is easier and more efficient to use the mouseMove message to track the movement of the mouse while the button is being held down.

Note: If there is no mouseStillDownhandler in the target object'sscript, no mouseStillDownmessage is sent, even if there is a mouseStillDownhandler in an object that's further along the message path.

User Comments
Expander triangle
User thumbnail
Devin Asay
StarStarStarStarStar
Oct 14, 2010
This message is not sent during a double click cycle, only during a single click cycle. In other words, if you click fast enough to invoke mouseDoubleDown and mouseDoubleUp messages, no mouseStillDown message will be sent if the mouse is held down after the second click.