ISDBUICommon::Anchors
Jump to navigation
Jump to search
CoClass SDBUICommon, Interface ISDBUICommon
Property Get/Let Anchors As Long
Property description
Anchors control to which borders of the parent control is this control sticked. It is useful for resizable forms in order to maintain proper positions of controls.
It can be any combination of the following:
- 1 (akLeft) - Distance from the left border of the parent is constant.
- 2 (akTop) - Distance from the top border of the parent is constant.
- 4 (akRight) - Distance from the right border of the parent is constant.
- 8 (akBottom) - Distance from the bottom border of the parent is constant.
Example code
Btn.Common.Anchors = 4+8 ' The button is always in a constant distance from Bottom Right corner.