LCL AutoSizing
From Free Pascal wiki
Jump to navigationJump to searchOverview / Terminology
This page explains the LCL auto sizing algorithm. AutoSizing means here: Automatic resizing and repositioning of LCL controls.
Properties
The following properties defines the behavior of the LCL autosizing:
- Current Left,Top,Width,Height,ClientWidth,ClientHeight
- Loaded Left,Top,Width,Height,ClientWidth,ClientHeight
- AutoSize
- Anchors
- AnchorSides
- Align
- BorderSpacing
- ChildSizing
- Constraints
For Delphi compatibility the LCL supports the method AdjustClientRect which is an extension to the BorderSpacing properties.
Order
The main method is TWinControl.AlignControls.
- AdjustClient
- alTop,alBottom,alLeft,alRight,alClient,alCustom,alNone,not aligned