Vcl.ExtCtrls.TCustomControlBar.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.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TCustomControlBar

Description

Aligns controls in the control bar.

Use AlignControls to align all controls within an area of the control bar. The alignment of child controls is based on their Align property.

AControl is a child control that takes precedence in alignment over other, similarly-aligned controls. This parameter can be nil (Delphi) or NULL (C++).

Rect specifies the area in which to align the controls.

TCustomControlBar overrides the inherited method to enforce the alignment of child controls in a manner appropriate to a control bar. AlignControls determines the best alignment for each control according to its size and the available space.