Unit 'msegui' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#msegui]

twidget.anchors

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)

Declaration

Source position: msegui.pas line 2616

public property twidget.anchors : anchorsty
  read fanchors
  write setanchors
  default defaultanchors;

Description

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.


Documentation generated on: 2026-10-03