<doc>
  <legacy_id>1049</legacy_id>
  <name>lock menus</name>
  <type>command</type>
  <syntax>
    <example>lock menus</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Menus</category>
  </classification>
  <references>
    <command tag="lock screen">lock screen Command</command>
    <property tag="lockMenus">lockMenus Property</property>
    <command tag="unlock menus">unlock menus Command</command>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Sets the <property tag="lockMenus">lockMenus</property> <glossary tag="property">property</glossary> to true, preventing the <glossary tag="menu bar">menu bar</glossary> from being updated when the <glossary tag="control">controls</glossary> for the <glossary tag="menu bar">menu bar</glossary> are changed.</summary>
  <examples>
    <example>lock menus</example>
    <example>if the lockScreen then lock menus</example>
  </examples>
  <description>
    <p>Use the <b>lock menus</b> <glossary tag="command">command</glossary> to hide changes in the <glossary tag="menu bar">menu bar</glossary> from the user.</p><p/><p><b>Comments:</b></p><p>The <b>lock menus</b> <glossary tag="command">command</glossary> sets the <property tag="lockMenus">lockMenus</property> <glossary tag="property">property</glossary> to true.</p><p/><p>When all pending handlers are finished executing, the <b>lockMenus</b> <glossary tag="property">property</glossary> is set back to false, undoing the <b>lock menus</b> <glossary tag="command">command's</glossary> action. Any changes made to the <function tag="menus">menus</function> become visible to the user.</p>
  </description>
</doc>