Unit 'ExtCtrls' Package
[Overview][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomPanel.AdjustClientRect

Adjusts the specified rectangle to account for border and bevels used in the control.

Declaration

Source position: extctrls.pp line 1082

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, BeveInner, and BevelOuter. AdjustClientRect calls InflateRect to adjust ARect by the calcluated border and bevel widths.

AdjustClientRect is called when the control is autosize or aligned.

See also

TCustomPanel.BevelInner

  

BevelInner - determines the nature of the Inner Bevel of the panel (whether raised, lowered etc)

TCustomPanel.BevelOuter

  

BevelOuter - determines the nature of the Outer Bevel of 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.