autoArm

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the autoArm of <button> to {true | false}
Associationsbutton
Summary

Specifies whether a button becomes armed when the mouse pointer moves into it.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the autoArm of last button to false
set the autoArm of button "Menu Choices" to true
Values
NameTypeDescription
Value

The autoArm of a button is true or false. By default, the autoArm of newly created buttons is false. Menu items and cascading menu items created with the "New Control" submenu of the Object menu have their autoArm property set to true when created.

RelatedKeyword: pointer, button
Property: showHilite, armed, armFill, armedIcon
Message: mouseDown, keyDown, keyUp
Object: button
Glossary: property, stack menu, mouse pointer, message, menu item, cascading menu
Description

Use the autoArm property to provide visual feedback to the user about which button the mouse pointer is over. Usually, the autoArm property is used for buttons that are part of stack menus.

A button whose autoArm property is set to true does not receive mouseDown messages.

If a button's autoArm property is true, it receives keyDown and keyUp messages for keypresses that occur while the mouse is pressed and the pointer is over the button. If the button's autoArm is false, it does not receive key messages while being clicked.

Tagsui