Vcl.WinXCtrls.TCustomRelativePanel.AlignControls
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:
- The controls are aligned with the panel.
- Centering has priority over side alignments.
- Left has priority over right, top over bottom.
- 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
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignBottomWith
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignBottomWithPanel
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignHorizontalCenterWith
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignHorizontalCenterWithPanel
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignLeftWith
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignLeftWithPanel
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignRightWith
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignRightWithPanel
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignTopWith
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignTopWithPanel
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignVerticalCenterWith
- Vcl.WinXCtrls.TRelativePanelControlItem.AlignVerticalCenterWithPanel
- Vcl.WinXCtrls.TRelativePanelControlItem.Below
- Vcl.WinXCtrls.TRelativePanelControlItem.LeftOf
- Vcl.WinXCtrls.TRelativePanelControlItem.RightOf