Vcl.Forms.TScrollingWinControl.AlignControls

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TScrollingWinControl

Description

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.

See Also