<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Pseudo-object Methods and Properties > <ControlName>.Anchor |
Description
Allows setting the anchors for resizing for given control.
Syntax
' Set
<controlName>.Anchor = anchorSpecification
Returns
None
Parameters (Set only)
Name |
Type |
Optional |
Meaning |
anchorSpecification |
Number |
No |
Please specify the desired anchors via predefined equates using OR:
%ANCHOR_LEFT %ANCHOR_RIGHT %ANCHOR_TOP %ANCHOR_BOTTOM |
Remarks
Restrictions
Currently set only.
See also
Examples
Control Add Button Name CloseButton, hDlg, %IDCANCEL, "", 600, 400, 100, 25
' This will make the button stick to fixed offset from right/bottom border, when resizing
CloseButton.Anchor = %ANCHOR_RIGHT | %ANCHOR_BOTTOM