enabled

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the enabled of <object> to {true | false}
Associationsfield, button, graphic, scrollbar, player, image, group
Summary

Specifies that an object is active and responds to user action.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the enabled of card button "Work Miracles" to true
set the enabled of menu "Window" to false
Values
NameTypeDescription
Value

The enabled of a control is true or false. By default, the enabled property of a newly created control is true.

RelatedKeyword: control, menu
Property: disabled
Command: enable, disable, enable menu, group
Glossary: object, property, command, menu item, menu
Description

Use the enabled property to find out whether a control can respond to mouse clicks or keyboard presses.

The enabled property of an object is the logical inverse of that object's disabled property. When the enabled is true, the disabled is false, and vice versa.

An enabled control can receive the focus.

Setting a group's enabled property sets the enabled of each control in the group.

You can set the enabled property of a menu by specifying the menu's name or number. An enabled menu can be displayed, and menu items can be individually enabled or disabled using the enable and disable commands.

Tagsui