Show: Delphi C++
Display Preferences

Vcl.Controls.TWinControl.AlignControls

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AlignControls(AControl: TControl; var Rect: TRect); virtual;

C++

virtual void __fastcall AlignControls(TControl* AControl, System::Types::TRect &Rect);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

Aligns any controls for which the control is the parent within a specified area of the control.

Use AlignControls to align all controls within an area of a form, panel, group box, scroll box, or any container control. 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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance