Controls.TWinControl.ArrangeControl

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Controls.pas

	procedure ArrangeControl(AControl: TControl;
		const ParentSize: TPoint;
		AAlign: TAlign;
		AAlignInfo: TAlignInfo;
		var Rect: TRect;
		UpdateAnchorOrigin: Boolean = False);


Unit: Controls

Type: method

Visibility: protected

Member Of: TWinControl

C++ Information

From Controls.hpp

	void __fastcall ArrangeControl(Controls::TControl * AControl,
		const Types::TPoint & ParentSize,
		Controls::TAlign AAlign,
		const Controls::TAlignInfo & AAlignInfo,
		Types::TRect & Rect,
		bool UpdateAnchorOrigin);


Unit: Controls

Type: method

Visibility: protected

Member Of: TWinControl

Description

Aligns the given control with the specified alignment options.


ArrangeControl is a protected method used internally by AlignControls to align each control, with the specified alignment options.

To be more specific, ArrangeControl aligns the control given by AControl, with the alignment options specified through the parameters ParentSize, AAlign, AAlignInfo, Rect, and UpdateAnchorOrigin. The meaning of these parameters is summarized in the following table.



Parameter Meaning

ParentSize

The size of the parent control within which AControl is aligned.

AAlign

Determines how AControl aligns within its parent control.

AAlignInfo

Describes the alignment details of AControl within its parent.

Rect

The rectangular area inside the parent control in which to align AControl.

UpdateAnchorOrigin

Specifies whether to update the anchor origin of AControl, following the alignment.



See Also

Personal tools
Translations
Newest Version