RectControl.LockTop

From Xojo Documentation
Jump to: navigation, search
Property (As Boolean )
aRectControl.LockTop = newBooleanValue
or
BooleanValue = aRectControl.LockTop

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

Notes

Beginning with version 2009r5, LockTop and LockLeft default to True when you add a control to a window. Existing controls will be altered only if LockRight and/or LockBottom are not set. LockTop has no effect unless LockBottom is True.

Example

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

Me.LockTop = True
Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About