Autor Beitrag
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Mo 03.12.07 08:26 
Hallo Leute,
ich zeichne ein Stringgrid mit mehreren einträgen. Ich wollte manche einträge mit einer anderen schriftfarbe hervorheben. so kriege ich es nicht hin.. kann mir jemand helfen? kriege immer nur eine schriftfarbe für das gesamt grid hin.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
      //hallo soll grau geschrieben werden
      Stringgrid1.Canvas.font.color := clGray;
      stringgrid1.cells[x, y] := 'Hallo';

      //alles andere soll schwarz geschrieben werden
      Stringgrid1.Canvas.font.color := clblack;



gruß
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Mo 03.12.07 08:35 
ok ich habs rausgefunden. musste das färben der schrift in StringGrid1DrawCell machen.
gute woche euch