Controls how the widget's position and size follow the resizing of its parent, independently for each edge (an_left, an_top, an_right, an_bottom)
Source position: msegui.pas line 2616
public property twidget.anchors : anchorsty |
Controls how the widget's position and size follow the resizing of its parent, independently for each edge (an_left, an_top, an_right, an_bottom): with both edges of a dimension False, position is 0 and size always equals the parent's paint area (as with Delphi's Align = alClient); with only the leading edge True, the leading position and the size are constant; with only the trailing edge True, the trailing edge follows the parent's trailing edge and the size stays constant; with both edges True, the leading position is constant and the size is synchronized with the parent's size. Setting anchors to [] makes the widget fill the parent's paint area on both axes.