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

Additional Comments
Expander triangle

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


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.


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
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.