{"identifier":75037,"topic":"Properties","name":"lockMessages","text":"<code> set <\/code>[<code>the<\/code>]<code> lockMessages to <i>trueOrFalse<\/i> <br><br>\n\n <\/code>The<code> lockMessages <\/code>property returns or sets whether HyperCard sends certain messages automatically. <br><br>\n\n The messages affected are<code> closeCard<\/code>,<code> closeBackground<\/code>,<code> closeStack<\/code>,<code> openCard<\/code>,<code> openBackground<\/code>,<code> openStack<\/code>,<code> resumeStack<\/code>, and<code> suspendStack<\/code>. <br>\n<br>\n Setting<code> lockMessages <\/code>to true is useful when you want to go to a card to retrieve or save information, but you don\u2019t want to stay there. (The handler will run faster with<code> lockMessages <\/code>set to true.) <br><br>\n\n The default setting is false, meaning that HyperCard <u>does<\/u> send the messages. HyperCard sets<code> lockMessages <\/code>to false on idle. <br>\n","related":{"38981":"go","40922":"lock","75404":"lockRecent","75546":"lockScreen","50046":"unlock"},"examples":"set the lockMessages to true","demo":"on lockMessagesDemo\n   -- The script of this background contains a closeCard handler that\n   -- closes this Demo Script field if it is open.\n   -- By locking messages, this handler prevents HyperCard from sending\n   -- the closeCard message when it goes to the previous card.\n   set <b>lockmessages<\/b> to true\n   click at the loc of bkgnd button \"Prev\"\n   click at the loc of bkgnd button \"Next\"\n   set <b>lockmessages<\/b> to false\n end lockMessagesDemo\n ","debug":{"9":["\rset [the] lockMessa"],"10":["\rSetting lockMessage"]}}