Error getting tags :
error 404Error getting tags :
error 404 lockLocation | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Expander triangle

set the lockLocation of object to {true | false}

Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
None required
Specifies whether the user can move a control.

set the lockLocation of button "Next" to true
set the lockLocation of group ID 4455 to false

Additional Comments
Expander triangle

Use the lockLocation property to protect a control from being moved by the user, or to change the result of setting the height or width property, or to prevent an image or player from changing its size to fit the contents.


The lockLocation of a control is true or false.

By default, the lockLocation property of a newly created control is set to false.


If the lockLocation property of an object is false, the user can drag its handles with the Pointer tool to move or resize the object. If the object's lockLocation is true, the user cannot move it or resize it.

If the lockLocation of a player or image that references an external file is false, the image or player is resized to fit its contents whenever the card opens. If the lockLocation is true, the image retains whatever size you set, even if it's not the same size as the object's contents.

If the lockLocation of a group is false, the group is automatically resized when the objects in it are moved, resized, hidden, or shown. If the lockLocation is true, this automatic resizing does not occur, and objects that move outside the group's boundaries are not shown. If a group has a scrollbar, set its lockLocation to true to ensure that the group does not automatically resize to fit its contents.

If a control's lockLocation property is false, when you change its height, it shrinks or grows from the center: the control's top and bottom edges both shift, while its location property stays the same. If the control's lockLocation property is true, it shrinks or grows from the top left corner: the control's top edge stays in the same place, and the bottom edge moves.

Note: Changing a control's width or height in the property inspector always preserves its location, regardless of the lockLocation setting.

The setting of the lockLocation property does not prevent a handler from moving or resizing an object.

User Comments
Expander triangle
User thumbnail
Craig Newman (dunbarx)
Jan 8, 2010
The lockLocation property will not preclude the ability to change the loc of an object under script control. It pertains only to manual access when in edit mode.