[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 1259

protected property TCustomGrid.FocusColor : TColor
  read FFocusColor
  write SetFocusColor;

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 in 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.


Version 3.2 Generated 2024-02-25 Home