mouseDoubleDown

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
mouseDoubleDown <pButtonNumber>
Associationsstack, card, field, button, graphic, scrollbar, player, image
Summary

Sent when the user double-clicks.

Introduced1.0
OSmac, windows, linux, ios, android, web
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
pButtonNumber

Specifies which mouse button was pressed:

"1": the left button on systems with a multi-button mouse and the mouse button on Mac OS systems with a single-button mouse.
"2": the middle button on systems with a three-button mouse.
"3": the right button on systems with a multi-button mouse and Control-click on Mac OS systems with a single-button mouse.
Example
on mouseDoubleDown myButton -- open a file in an another application
  if myButton is not 1 then pass mouseDoubleDown
  launch the label of the target with (field "Editor App")
end mouseDoubleDown
RelatedProperty: doubleClickDelta, doubleClickInterval
Message: mouseDoubleUp, mouseStillDown
Glossary: Browse tool, card, control, double-click, field, image, message, mouse button, mouse pointer, object, pixel, unlock
Control Structure: pass
Description

Handle the mouseDoubleDown message to perform an action when the user double-clicks.

The mouseDoubleDown message is sent to the control that was double-clicked, or to the card if no control was under the mouse pointer.

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

Note: If the user clicks a transparent pixel in an image, the mouseDoubleDown message is sent to the object behind the image, not to the image.

Tagsui