DesktopUIControl.LockLeft

From Xojo Documentation

Revision as of 18:10, 23 July 2021 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Boolean )
aDesktopUIControl.LockLeft = newBooleanValue
or
BooleanValue = aDesktopUIControl.LockLeft

New in 2021r3

Supported for all project types and targets.

Determines whether the left edge of the control should stay at a set distance from the left edge of the parent control, if there is one, or the owning window.

Notes

LockLeft and Locktop default to True when you add a new control to a window. Existing controls will be altered only if LockRight and/or LockBottom are not set. LockLeft has no effect unless LockRight is True.

Example

This property can be set in the control's Inspector. The following example sets it in code.

Me.LockLeft = True