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

# TCustomPanel.AdjustClientRect

Adjusts the specified rectangle to account for borders and bevels used on the control.

## Declaration

Source position: extctrls.pp line 1144

`protected procedure TCustomPanel.AdjustClientRect(`
`var aRect: TRect`
`); override;`

## Description

AdjustClientRect is an overridden procedure used to adjust the drawing rectangle in ARect to account for borders and bevels used on the panel. AdjustClientRect calls the inherited method, and calculates the number of pixels required for the settings in BorderWidth, BevelInner, and BevelOuter. AdjustClientRect calls InflateRect to adjust ARect by the calculated border and bevel widths.

AdjustClientRect is called when the control is autosize or aligned.

## See also

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.).
TWinControl.BorderWidth |  | Width of the Border around the control; default is zero.
TWinControl.AdjustClientRect |  | Override this method when the ClientRect for a control differs from the default value.