<doc>
  <legacy_id>2006</legacy_id>
  <name>lockMessages</name>
  <type>property</type>
  <syntax>
    <example>set the lockMessages to {true | false}</example>
  </syntax>
  <library></library>
  <objects>
    <global/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Objects &amp; Messages</category>
  </classification>
  <references>
    <command tag="lock messages">lock messages Command</command>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies whether <glossary tag="setProp trigger">setProp triggers</glossary>, <glossary tag="getProp call">getProp calls</glossary>, and certain <href tag="../dictionary/builtdashin_message.xml">built-in messages</href> are sent automatically.</summary>
  <examples>
    <example>set the lockMessages to false</example>
  </examples>
  <description>
    <p>Use the <b>lockMessages</b> <glossary tag="property">property</glossary> to prevent unwanted <glossary tag="handler">handlers</glossary> from being <glossary tag="trigger">triggered</glossary>,or to speed up operations when <glossary tag="handler">handlers</glossary> that are normally run automatically are not needed.</p><p/><p><b>Value:</b></p><p>The <b>lockMessages</b> is true or false</p><p/><p>By default, the <b>lockMessages</b> <glossary tag="property">property</glossary> is set to false. It is <command tag="reset">reset</command> to false when no <glossary tag="handler">handlers</glossary> are <glossary tag="execute">executing</glossary>.</p><p/><p><b>Comments:</b></p><p>If the <b>lockMessages</b> <glossary tag="property">property</glossary> is set to true, the following are not sent:</p><p/><p>        * Navigation messages (such as <b>openCard</b>, <message tag="closeStack">closeStack</message>, and so on) </p><p>        * Object creation messages (such as <b>newCard</b>, <message tag="newButton">newButton</message>, and so on)</p><p>        * getProp calls</p><p>        * setProp triggers</p><p/><p>It is useful to set this property if a handler temporarily visits a card and you don't want the normal messages to be triggered.</p><p/><p>The <b>lockMessages</b> <glossary tag="property">property</glossary> is automatically set to false when a <command tag="palette">palette</command>, <command tag="modeless">modeless</command>, or <command tag="modal">modal</command> <object tag="stack">stack</object> is opened, even if a <glossary tag="handler">handler</glossary> is still running.</p>
  </description>
</doc>