Fandom

Livecode Wiki

MouseStillDown

1,968pages on
this wiki
Add New Page
Comments0 Share

Sent periodically while the mouse button is being held down.Syntax:

mouseStillDown <mouseButtonNumber>

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

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 mouse button is being held down.

If there is no mouseStillDown handler in the target object's script, no mouseStillDown message is sent, even if there is a mouseStillDown handler in an object(glossary) that's further along the message path.

Parameters:

  • mouseButtonNumber (enum): 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.
  • Description:You can handle the mouseStillDown message to perform an action whenthe user holds the mouse button down.

See also: mouseUp (message),mouseDoubleDown (message),mouseDown (message),mouseRelease (message),idleTicks (property),script (property),properties (property),repeatDelay (property),idleRate (property),

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.