Sets the lockMenus property to true, preventing the menu bar from being updated when the controls for the menu bar are changed.
# Metadata
Platforms: desktop, server OS: mac, windows, linux Introduced: 1.0 Security:
# Syntax
lock menus
# Examples
lock menus
if the lockScreen then lock menus
# 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 action. Any changes made to the menus become visible to the user.
# Tags
# See
- **property:** lockMenus - **command:** unlock menus, lock screen - **function:** menus - **glossary:** property, command, menu bar, control