Sign in Join
FPDoc Onlineexperiment

TControlBorderSpacing.CellAlignHorizontal property

Member of TControlBorderSpacingpublishedIn unit Controls

The horizontal alignment of the associated Control when the control ChildSizing uses a tabular layout.

Declaration

pascal
property CellAlignHorizontal: TControlCellAlign read FCellAlignHorizontal write SetCellAlignHorizontal default ccaFill;

Description

CellAlignHorizontal is a TControlCellAlign property which controls the horizontal alignment and sizing of the control when its Parent uses a tabular layout for child controls. The default value for the property is caFill and causes the control to be resized to horizontally fill the cell where the control is displayed.

See TControlCellAlign for more information about the values in the enumeration and their meanings.

Changing the value for the property causes the Change method to be called to recalculate the preferred size for the associated Control, and to signal the OnChange event handler (when assigned).

The value in CellAlignHorizontal is used when the AlignControls method in the associated Control is called.

See also

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