RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolBar.AlignControls Method

Aligns any child controls of the toolbar within a specified area of the control.

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

The protected AlignControls method is called automatically to align all controls within an area of container control (in this case the tool bar). In TToolBar, AlignControls takes into account the special needs of a tool bar in arranging its buttons. 

Control is a child control that should have precedence when laying out the child controls. If Control is nil (Delphi) or NULL (C++), none of the child controls has precedence. 

Rect is the area in which to align the child controls. 

 

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