APLX Help
: System Classes
: Properties
: anchors
|
|
![]() |
The 'anchors' property |
Four-element boolean vector Valid for: All visible controls The anchors property defines which edges of the window the control is anchored to. It comprises a vector of four boolean values, which govern whether the control is anchored to the top, left, bottom and right of the window respectively. The default is If you set the anchors property to Win1.But.anchors←0 0 1 1 If a control is anchored to both the left and the right, then as the window is re-sized, the left edge of the control will remain at a fixed distance (as initially set by the where property) from the left edge of the window, and the right edge of the control will remain at a fixed distance from the right edge of the window. Thus the control will grow or shrink horizontally with the window. Similarly, if the control is anchored to both the top and the bottom, it will grow or shrink vertically with the window. This example causes the control to grow or shrink with the window in both directions: Win1.Ed.anchors←1 1 1 1 |
|
APLX Help
: System Classes
: Properties
: anchors
|
Copyright © 1996-2010 MicroAPL Ltd