Sign in Join
FPDoc Onlineexperiment

TCustomPanel.AdjustClientRect procedure

Member of TCustomPanelprotectedIn unit ExtCtrls

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

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.