[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'fpg_widget' (#fpgui)

TfpgWidget.Anchors

Allows the component to resize or reposition based on its Parent.

Declaration

Source position: fpg_widget.pas line 182

public property TfpgWidget.Anchors: TAnchors
  read FAnchors
  write FAnchors
  default [anLeft,anTop];

Description

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.


Documentation generated on: 2013-04-29