lockMenus

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the lockMenus to {true | false}
Summary

Specifies whether the menu bar is updated when the buttons used for the menu bar are changed.

Introduced1.0
OSmac
Platformsdesktop, server
Example
set the lockMenus to false
Values
NameTypeDescription
Value

The lockMenus is true or false. By default, the lockMenus property is set to true. It is reset to true when all pending handlers are finished executing.

RelatedProperty: menubar
Command: lock menus, reset, group
Object: button
Glossary: property, handler, menu bar, execute
Description

Use the lockMenus property to hide temporary menu bar changes from the user, or to "hold" changes until you've finished all of them and are ready to display the new menu bar.

If the lockMenus is set to true, changes in the menubar group do not appear in the menu bar itself. To make these changes appear on screen, the lockMenus must be set to false momentarily.

The setting of this property has no effect on Unix and Windows systems.

Tagsmenus