Sign in Join
FPDoc Onlineexperiment

TCustomControlBar.AlignControlToBand procedure

Member of TCustomControlBarprotectedIn unit ExtCtrls

Aligns the control for the specified band and updates its coordinates for use in subsequent resize operations.

Declaration

pascal
procedure AlignControlToBand(ABand: TCtrlBand; ARightToLeft: Boolean)

Arguments

ABand

TCtrlBand with the control positioned and aligned in the method.

ARightToLeftTrue if right-to-left layout is used for the band decorations and control.

Description

AlignControlToBand updates values in ABand to ensure that the Control for the band is centered vertically within its bounds and positioned for the setting in ARightToLeft. Values from the Control are stored in the ControlLeft, ControlTop, ControlHeight, and ControlWidth properties in the control band. This allows the values to be used in subsequent resize operations.

AlignControlToBand is called from the AlignControlsToBands and InitializeBand methods.

See also

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