lockMessages

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the lockMessages to {true | false}
Summary

Specifies whether setProp triggers, getProp calls, and certain built-in messages are sent automatically.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the lockMessages to false
Values
NameTypeDescription
Value

The lockMessages is true or false By default, the lockMessages property is set to false. It is reset to false when no handlers are executing.

RelatedMessage: newButton, closeStack
Command: reset, lock messages, modal, modeless, palette
Object: stack
Glossary: message, property, getProp call, built-in message, handler, setProp trigger, trigger, execute
Description

Use the lockMessages property to prevent unwanted handlers from being triggered, or to speed up operations when handlers that are normally run automatically are not needed.

If the lockMessages property is set to true, the following are not sent:

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.

The lockMessages property is automatically set to false when a palette, modeless, or modal stack is opened, even if a handler is still running.

Tagsobjects,messages