RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.AlignControls Method

Aligns all child controls of the form that fall within a specified rectangle.

Pascal
procedure AlignControls(AControl: TControl; var Rect: TRect); override;
C++
virtual __fastcall AlignControls(TControl * AControl, TRect Rect);

Use AlignControls to align all controls within an area of the form. Specify the area in which to align the controls as the value of the Rect parameter. 

AlignControls uses the Align property value for each child control to determine how to align it. The AControl parameter can be nil (Delphi) or NULL (C++). If you specify a control in AControl, that control takes precedence in alignment over other, similarly aligned controls. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!