Sign in Join
FPDoc Onlineexperiment

TCustomGrid.Invalidate procedure

Member of TCustomGridpublicIn unit Grids

Performs a request to redraw the control.

Declaration

pascal
procedure Invalidate; override

Description

Invalidate is an overridden method in TCustomGrid. It ensures that the internal update counter is at 0 before forcing the control to be redrawn. No actions are performed in the method if the counter has a non-zero value.

Invalidate calls the inherited method where the paint request is performed when the Handle for the control has been allocated.

Invalidate is called when color, style, or content changes occur in the grid which require the control to be redrawn. For instance:

  • AltColorStartNormal
  • AlternateColor
  • BorderColor
  • Color
  • DefaultDrawing
  • DoOnChangeBounds
  • FadeUnfocusedSelection
  • FixedColor
  • FixedGridLineColor
  • FocusRectVisible
  • Flat
  • GridLineColor
  • GridLineStyle
  • GridLineWidth
  • InvalidateGrid
  • MouseDown
  • Notification
  • SelectedColor
  • Selection
  • TitleStyle
  • VisualChange
  • UseXORFeatures

See also

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