The ANCHOR attribute allows you to control the position of each edge of the gadget relative to the corresponding edge of its container.
For example, ANCHOR RIGHT specifies that the right hand edge of the gadget will maintain a fixed distance from the right hand edge of its owning container.
The ANCHOR attribute may have any combination of the values
LEFT,
RIGHT,
TOP, or
BOTTOM; or it may have the values
NONE or
ALL. When the container resizes, the fixed distance is maintained for any anchored edges.