API:Vcl.Forms.TCustomForm.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.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Aligns the controls in the scrolling windowed control.
Vcl.Forms.TCustomForm.AlignControls inherits from Vcl.Forms.TScrollingWinControl.AlignControls. All content below this line refers to Vcl.Forms.TScrollingWinControl.AlignControls.
Aligns the controls in the scrolling windowed control.
Use AlignControls to align the controls in the scrolling control according to the values of their Align properties.
AControl specifies the control that takes precedence in alignment when other controls have the same Align value. AControl can be nil (Delphi) or NULL (C++).
ARect indicates the area in the scrolling control that contains the controls to align. ARect is automatically set to the entire area of the scrolling control.
If AutoScroll is true and the scrolling control is not being resized, the ranges of the scroll bars on the scrolling control are automatically recalculated.
After recalculating the ranges of the scroll bars and setting the value of ARect, AlignControls calls the inherited AlignControls method, passing the AControl and ARect objects.