Sign in Join
FPDoc Onlineexperiment

TCustomGrid.FocusColor property

Member of TCustomGridprotectedIn unit Grids

The color used to draw the focus rectangle when a cell has focus.

Declaration

pascal
property FocusColor: TColor read FFocusColor write SetFocusColor default clRed;

Description

FocusColor is a TColor property with the color used to draw the focus rectangle (or rubber band) for the focused cell in the grid control. The default value for the property is clRed. Changing the value for the property causes the current cell at Col and Row to be redrawn.

FocusColor is used in the DrawFocusRect method when DefaultDrawing is enabled for the grid control. But it is not used when UseXORFeatures is enabled; clWhite is used as the pixel color instead.

See also

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