Sign in Join
FPDoc Onlineexperiment

TAlign enumeration

In unit Controls

Alignment options for a control, within its Parent control.

Declaration

pascal
TAlign = (alNone,alTop,alBottom,alLeft,alRight,alClient,alCustom)

Description

TAlign is an enumeration type with values that indicate the alignment for a control within its Parent. The enumeration includes the following values and meanings:

alNone
fixed position and extent
alTop
stacked at top, full width
alBottom
stacked at bottom, full width
alLeft
stacked at left, full height
alRight
stacked at right, full height
alClient
filling entire remaining client area
alCustom
other alignment, in drag-dock: notebook

At most, one control can have alClient alignment for a given form or container.

The order of multiple controls with the same (stackable) alignment is determined by their Left and/or Top coordinate. The precedence of conflicting alignment requests (e.g. one at top, one at right) is resolved.

Values

alNoneControl has fixed size and position.
alTopControl stacked at top, full width.
alBottomControl stacked at bottom, full width.
alLeftControl stacked at left, full height.
alRightControl stacked at right, full height.
alClientControl fills remaining client area.
alCustomControl has special alignment.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.