lockUpdates

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the lockUpdates of <group> to {true | false}
Associationsgroup
Summary

When a control within a group is resized or moved it causes all parents to recalculate their bounds appropriately. The lockUpdates property of the group prevents this behavior.

Introduced6.1
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the lockUpdates of group 1 to true
on updateGroupedControls
   set the lockUpdates of group 1 to true
   set the left of button 1 of group 1 to 5
   set the bottom of button 2 of group 1 to 10 
   set the lockUpdates of group 1 to false
end updateGroupedControls
Values
NameTypeDescription
Value

The lockUpdates of a group is true or false. By default, the lockUpdates property of newly created groups is set to false.

RelatedProperty: lockLocation
Message: resizeControl
Description

Use the lockUpdates property to temporarily prevent parent controls from recalculating their size when a child object changes position or size.

When a control within a group is resized or moved it causes all parents to recalculate their bounds appropriately. This action can now be temporarily suspended by using the lockUpdates property of the group.

Typically, you'll want to set the lockUpdates of a group to true before performing moving or resizing child controls, and then turn it back to false afterwards.

Note: The lockUpdates property does not nest and the group will not resize itself appropriately based on the child controls until it is set back to false.

Tagsobjects