[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'ExtCtrls' (#lcl)

# TCustomControlBar.AlignControlsToBands

Aligns visible control bands in the container.

## Declaration

Source position: extctrls.pp line 1613

`protected procedure TCustomControlBar.AlignControlsToBands;`

## Description

AlignControlsToBands calls the AlignControlToBand method to position and align the visible bands on the control bar.

It temporarily disables auto-sizing during the alignment process. Auto-sizing is restored prior to exit.

AlignControlsToBands is called from the CMBorderChanged, MoveBand, StickControls, and Resize methods. It is also called when a new value is assigned to the RowSize property.

## See also

TCustomControlBar.AlignControlToBand |  | Aligns the control for the specified band and updates its coordinates for use in subsequent resize operations.
TCustomControlBar.AutoSize |  | Indicates if bands are automatically sized and positioned on the control bar.
TCustomControlBar.Resize |  | Signals the OnResize event handler (when assigned) and re-aligns bands and their controls.
TCustomControlBar.RowSize |  | Height used for a band or a row of bands displayed on the control bar.
TCustomControlBar.MoveBand |  | Performs actions needed when a band is moved to new position.
TCustomControlBar.StickControls |  | Aligns controls to both their bands and the control bar.
TCustomControlBar.CMBorderChanged |  | Handles the CM_BORDERCHANGED message.