[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomGrid.FocusColor

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

Declaration

Source position: grids.pas line 1260

protected property TCustomGrid.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

TCustomGrid.DrawFocusRect

  

Draws the focus rectangle for the specified cell.

TCustomGrid.UseXORFeatures

  

When True, the dotted focus rectangle is painted using an XOR raster operation.


Version 4.0 Generated 2025-05-03 Home