Objective Grid: Changing color properties of a cell

Article ID: 321
Last updated: 11 Jun, 2018
Article ID: 321
Last updated: 11 Jun, 2018
Revision: 3
Views: 3299
Posted: 11 Jan, 2001
by Meltreger B.
Updated: 11 Jun, 2018
by Meltreger B.

Problem


How can I change the color properties (grid lines, background, ...)?


Cause



Action


Use the CGXProperties::SetColor() method:

void SetColor(int nIndex, COLORREF rgbColor);

nIndex can be one of the following constants:

  • GX_COLOR_GRIDLINES - grid lines.
  • GX_COLOR_FIXEDLINES - separator line between frozen columns/rows and not frozen columns/rows.
  • GX_COLOR_TRACKINGLINE - outline the line for the row/column being sized.
  • GX_COLOR_DRAGGINGLINE - outline the line for the destination row/column being dragged.
  • GX_COLOR_BACKGROUND - background color for the bottom and for the right of the grid area.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 321
Last updated: 11 Jun, 2018
Revision: 3
Views: 3299
Posted: 11 Jan, 2001 by Meltreger B.
Updated: 11 Jun, 2018 by Meltreger B.

Others in this category