Thema: Delphi Stringgrid DrawCell

Einzelnen Beitrag anzeigen

hansklok

Registriert seit: 14. Apr 2004
Ort: Karlsruhe
318 Beiträge
 
Delphi 2010 Architect
 
#4

Re: Stringgrid DrawCell

  Alt 5. Okt 2005, 19:41
Ich habe es selbst hinbekommen. Es hätte so aussehen müssen:

Delphi-Quellcode:
var
 i: Integer;
...
with tTabelle do
  begin
      for i:= 1 to tTabelle.RowCount-1 do
        begin
          if tTabelle.Cells[3, ARow] = 'Neinthen
          begin
         Canvas.Font.Color := clRed;
         Canvas.Brush.Style:= bsSolid;
         Canvas.TextRect(Rect, Rect.Left + 2,
                         Rect.Top + 2, Cells[ACol, ARow]);
         end
      end;
   end;
  Mit Zitat antworten Zitat