Livecode Wiki
Advertisement

A Message sent when the user presses the mouse button while the mouse pointer is in the backdrop.. If there is a message handler by the same name in the message path, then it will be executed.

Message[]

Syntax:

mouseDownInBackdrop <mouseButtonNumber>

The parameter <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 mouseDownInBackdrop message is sent to the current card.

Message handler[]

Examples:

on mouseDownInBackdrop -- show a popup menu with a list of windows
  popup button "Windows"
end mouseDownInBackdrop

Use the mouseDownInBackdrop Message handler to perform an action when the user presses the mouse button while the mouse pointer is outside any window.

If the backdrop property is set to "none", the mouseDownInBackdrop message is not sent.

See also: mouseUpInBackdrop.

Advertisement