[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TControl.Align

Specifies the placement of the control on its Parent control.

Declaration

Source position: controls.pp line 1794

public property TControl.Align : TAlign
  read FAlign
  write SetAlign
  default alNone;

Description

Align is a TAlign property which specifies how the control is aligned to its parent control. The default value for the property is alNone.

alNone
The control is not aligned. It uses it Top, Left, Height, and Width to place the control in the Parent.
alTop
Aligns the control to the top of the parent control, and adjusts it Width to fill the Parent control.
alBottom
Aligns the control to the bottom of the Parent control, and adjusts its Width to fill the Parent control.
alLeft
Aligns the control to the left edge of the Parent control, and adjusts its Height to fill the Parent control.
alRight
Aligns the control to the right edge of the Parent control, and adjusts its Height to fill the Parent control.
alClient
Aligns the control to fill the unused Height and Width for the Parent control.
alCustom
Aligns the control by calling the OnAlignInsertBefore or OnAlignPosition event handlers in the Parent control.

See also

TAlign

  

Alignment options for a control, within its Parent control.


Version 3.2 Generated 2024-02-25 Home