mouseDoubleUp

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

Sent when the mouse button is released at the end of a double-click.

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 mouseDoubleUp theMouseButton 
  if theMouseButton is 3 then
    answer file "Please choose a file to open."
  else 
    pass mouseDoubleUp
  end if
end mouseDoubleUp
RelatedProperty: doubleClickDelta, doubleClickInterval, properties
Message: mouseDoubleDown
Command: answer file, click
Function: clickLoc, mouse
Glossary: Browse tool, card, control, double-click, field, image, message, mouse button, mouse pointer, object, pixel, unlock
Control Structure: pass
Description

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

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

If a tool other than the Browse tool is being used, no mouseDoubleUp message is sent. If an unlocked field is clicked with mouse button 1 or 2, no mouseDoubleUp message is sent.

The doubleClickInterval and doubleClickDelta properties determine what LiveCode accepts as a double click.

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

Tagsui