Sign in Join
FPDoc Onlineexperiment

TCustomForm.AdjustClientRect procedure

Member of TCustomFormprotectedIn unit Forms

Excludes borders from the given rectangle.

Declaration

pascal
procedure AdjustClientRect(var Rect: TRect); override

Arguments

Rect

Client rectangle adjusted in the method.

Description

AdjustClientRect is an overridden method in TCustomForm which re-implements the method from the ancestor class. It is used to decrease the width and height for the client rectangle specified in Rect by the number of pixels in the BorderWidth property. It is used in the AlignControls method, and when auto-sizing is performed for Controls.

See also

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