lock menus

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
lock menus
Summary

Sets the lockMenus property to true, preventing the menu bar from being updated when the controls for the menu bar are changed.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
lock menus
if the lockScreen then lock menus
RelatedProperty: lockMenus
Command: unlock menus, lock screen
Function: menus
Glossary: property, command, menu bar, control
Description

Use the lock menus command to hide changes in the menu bar from the user.

The lock menus command sets the lockMenus property to true.

When all pending handlers are finished executing, the lockMenus property is set back to false, undoing the lock menus command's action. Any changes made to the menus become visible to the user.

Tagsmenus