cantModify

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the cantModify of <stack> to { true | false }
Associationsstack
Summary

Specifies whether the user can make changes to a stack.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the cantModify of stack "Help" to true
Values
NameTypeDescription
Value

The cantModify of a stack is true or false. By default, the cantModify property of newly created stacks is set to false.

RelatedKeyword: card
Property: cantDelete, userLevel, lockText, label, userModify, mode
Command: topLevel, group
Function: tool, stacks
Glossary: object, property, Browse tool, title bar, handler, editable window
Object: stack
Description

Use the cantModify property to protect the objects in a stack from changes.

If a stack's cantModify property is set to true, the user cannot choose any tool except the Browse tool. This prevents the user from moving, resizing, creating, or deleting objects.

If a stack's cantModify is false and its label property is empty, an asterisk (*) appears in the stack's title bar, indicating that the stack can be modified.

The cantModify property restricts user actions, but does not affect actions performed by a handler. To prevent either user action or a handler from deleting a card, group, or stack, use the cantDelete property.

Important: If a modifiable stack is open in an editable window, the modifiable stack takes precedence over any non-modifiable stacks, because its mode property is lower. This means that menu items (such as Object ? Stack Properties) that act on the current stack may not be able to operate correctly with a stack whose cantModify is set to true as long as another, modifiable stack is open.

Tagsui