[Overview][Types][Classes][Procedures and functions][Variables][Index] |
Allows the component to resize or reposition based on its Parent.
Source position: fpg_widget.pas line 182
public property TfpgWidget.Anchors: TAnchors |
By default Anchors are set to Top Left.
Remark: | Anchoring only takes affect after the component is visible on the screen (when the component has a window handle assigned). So if you create a Button in the constructor and set its Anchor property to Bottom/Right, and then set the size of the Form, the Button will not be repositioned. |
This is by design. fpGUI allows you to setup a window layout without triggering unnecesary events as you set property values for each widget. Only when csLoading is not in ComponentState, then anchoring events will be triggered. This allows the developer or the fpGUI UI Designer to setup a window layout undisturbed.