TCustomControlBar.AlignControlToBand procedure
Aligns the control for the specified band and updates its coordinates for use in subsequent resize operations.
Declaration
procedure AlignControlToBand(ABand: TCtrlBand; ARightToLeft: Boolean)Arguments
ABand | TCtrlBand with the control positioned and aligned in the method. |
ARightToLeft | True 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.
