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

# TCustomControlBar.CalcInnerBevelWidth

Calculates the cumulative width for all borders and bevels used on the control bar.

## Declaration

Source position: extctrls.pp line 1616

`protected function TCustomControlBar.CalcInnerBevelWidth: Integer;`

## Function result

Number of pixels needed for the bevels and borders on the control bar.

## Description

Uses values in the BevelInner, BevelOuter, BevelWidth, and BorderWidth properties to calculate the return value.

Called from the CalculatePreferredSize, CMBorderChanged, and Paint methods.

## See also

TCustomControlBar.CalculatePreferredSize |  | Calculates the preferred height and width used during auto-sizing.
TCustomControlBar.CMBorderChanged |  | Handles the CM_BORDERCHANGED message.
TCustomControlBar.Paint |  | Draws the control with its image, decorations, and visible bands.
TCustomPanel.BevelInner |  | Determines the appearance of the Inner Bevel for the panel (whether raised, lowered, etc.).
TCustomPanel.BevelOuter |  | Determines the appearance of the Outer Bevel for the panel (whether raised, lowered, etc.).
TCustomPanel.BevelWidth |  | Width for a bevel on the panel in pixels.
TWinControl.BorderWidth |  | Width of the Border around the control; default is zero.