Sign in Join
FPDoc Onlineexperiment

TCustomGrid.AdjustClientRect procedure

Member of TCustomGridprotectedIn unit Grids

Adjusts the client rectangle and sets a grid flag to reflect the change.

Declaration

pascal
procedure AdjustClientRect(var ARect: TRect); override

Arguments

ARect

Client rectangle adjusted in the method.

Description

AdjustClientRect is an overridden method used to adjust the client rectangle for the control, and set the grid flag to reflect the change. It calls the inherited method on entry. AdjustClientRect updates the GridFlags property to included the value gfClientRectChange.

The method does not perform any real actions other than setting the flag value in GridFlags. gfClientRectChange indicates that the cached sizes for grid Columns needs to be recalculated for the visible area before the grid control is drawn.

See also

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