No,
the story is, that I am displaying some data I am capturing from an external
device, in a string grid.
Some
of the data, i.e. if the data contains the word FIRE or ALARM or the like, I
want to paint the background of the row this appears in, in say
RED.
Then
if some other data comes in, I might want to paint THIS datas row insay GREEN or
some colour anyway, but it could be 2 or 4 or 20 rows later.
I can
do this BUT only if I specify the row....i.e. if row = 6 then
canvas.brush.color:=clred etc.
BUT if
I try to paint in normally, i.e. if Description = "FIRE" then
canvas.brush.color:=clred etc. it will paint ALL the rows red not the one I WANT
to be red.
I have
tried in the onDrawCell event to do something silly like, if ARow = ARow
then...do the color stuff, and also, if ARow = StringGrid1.RowCount-1 then do
the colour stuff, but with no success.
Way I
am trying figure out, and this is what I need some help on is, how to just paint
hte ONE row a colour, and another row another colour, and not them all the same
colour.
Is
this a better description of what I am trying to do ??
Cheers, Jeremy Coulter
|
- [DUG]: Multi coloured StringGrid rows Jeremy Coulter
- RE: [DUG]: Multi coloured StringGrid rows Carl Reynolds
- Re: [DUG]: Multi coloured StringGrid rows --- a b... Jeremy Coulter
- Re: [DUG]: Multi coloured StringGrid rows ---... Laurence Bevan
- RE: [DUG]: Multi coloured StringGrid rows... Jeremy Coulter
- [DUG]: MAPISendMail() - An example with attac... Chris Crowe
- RE: [DUG]: MAPISendMail() - An example wi... Colin Fraser
- RE: [DUG]: MAPISendMail() - An examp... Chris Crowe