Vcl.WinXCtrls.TCustomRelativePanel.AlignControls

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AlignControls(AControl: TControl; var Rect: TRect); override;

C++

virtual void __fastcall AlignControls(Vcl::Controls::TControl* AControl, System::Types::TRect &Rect);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.WinXCtrls.pas
Vcl.WinXCtrls.hpp
Vcl.WinXCtrls TCustomRelativePanel

Description

Aligns the controls in the relative panel.

The order of the alignment process is as follows:

  1. The controls are aligned with the panel.
    • Centering has priority over side alignments.
    • Left has priority over right, top over bottom.
  2. The controls are aligned with each other.
    • Align-with has priority over side alignments.
    • Left has priority over right, top over bottom.
      Note: The alignment occurs in order. That means the controls that have a higher index are aligned last and therefore "win" if there is an alignmnet conflict in this step.

See Also