Vcl.ComCtrls.TToolBar.AlignControls

From RAD Studio API Documentation
Jump to: navigation, search

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.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TToolBar

Description

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

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.

See Also