TWinControl.AlignControls procedure
Repositions and resizes the control and child controls.
Declaration
procedure AlignControls(AControl: TControl;
var RemainingClientRect: TRect); virtualDescription
AlignControls is a method used to reposition and resize the
specified control and the children in its Controls property. This includes
using the DockManager (when assigned and enabled) to reserve space for docked
controls in the client rectangle. It uses settings in the Align, Anchor,
BorderSpacing, ChildSizing, and Constraints properties to determine the
actions needed in the method for each of the controls.
AlignControls checks and updates the windowed control flags prior to starting the operation. No actions are performed in the method when wcfAligningControls is already included in the control flags.
The ControlsAligned method is called when the method is completed, and the control flags are updated to remove the value wcfAligningControls.
AlignControls is called from the private AlignControl method after the client rectangle has been adjusted and the logical display area for the control has been determined. AlignControl is the boss; AlignControls performs the heavy lifting.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
