RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.ArrangeControl Method

Aligns the given control with the specified alignment options.

Pascal
procedure ArrangeControl(AControl: TControl; const ParentSize: TPoint; AAlign: TAlign; AAlignInfo: TAlignInfo; var Rect: TRect; UpdateAnchorOrigin: Boolean = False);
C++
__fastcall ArrangeControl(TControl * AControl, const TPoint ParentSize, TAlign AAlign, TAlignInfo AAlignInfo, TRect Rect, Boolean UpdateAnchorOrigin = False);

ArrangeControl is a protected method used internally by AlignControls to align each control, with the specified alignment options.  

To be more specific, ArrangeControl aligns the control given by AControl, with the alignment options specified through the parameters ParentSize, AAlign, AAlignInfo, Rect, and UpdateAnchorOrigin. The meaning of these parameters is summarized in the following table.

Parameter 
Meaning 
ParentSize 
The size of the parent control within which AControl is aligned. 
AAlign 
Determines how AControl aligns within its parent control. 
AAlignInfo 
Describes the alignment details of AControl within its parent. 
Rect 
The rectangular area inside the parent control in which to align AControl
UpdateAnchorOrigin 
Specifies whether to update the anchor origin of AControl, following the alignment. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!