Discussion:
Easy, may be ..
(too old to reply)
Stark
2011-01-27 18:39:28 UTC
Permalink
I show some data in StringGrid, but the first cell is displayed in blue. I
want to get rid of the blue and have eveything in the same color ?
How do I do ?
Maarten Wiltink
2011-01-27 21:14:11 UTC
Permalink
Post by Stark
I show some data in StringGrid, but the first cell is displayed in
blue. I want to get rid of the blue and have eveything in the same
color ? How do I do ?
Change your global Windows colours, so the selection is not drawn in
a contrasting colour anymore. Solved.

Or unselect that cell.

Groetjes,
Maarten Wiltink
a***@aol.com
2011-01-28 07:28:26 UTC
Permalink
Post by Stark
I show some data in StringGrid, but the first cell is displayed in
blue. I want to get rid of the blue and have eveything in the same
color ? How do I do ?
<snip>
Or unselect that cell.
MyStringGrid.Selection := TGridRect(Rect(-1,-1,-1,-1));

. . . or write an OnDrawCell event handler.

Alan Lloyd
Stark
2011-01-28 12:58:44 UTC
Permalink
Post by Stark
I show some data in StringGrid, but the first cell is displayed in
blue. I want to get rid of the blue and have eveything in the same
color ? How do I do ?
<snip>
Or unselect that cell.
MyStringGrid.Selection := TGridRect(Rect(-1,-1,-1,-1));

. . . or write an OnDrawCell event handler.

Alan Lloyd

Yes, in the meantime wrote an OnDrawCell event handler, but your solution
is so simple ! Thanks

Loading...