Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.166 Beiträge
Delphi 12 Athens
|
Re: Schrift Bold in bestimmten Zellen im Stringgrid? Geht da
18. Nov 2003, 18:12
Delphi-Quellcode:
Procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState);
Begin
If StringGrid1.Cells[ACol, ARow] = '1' Then Begin {Zelleninhalt auf irrgend etwas prüfen...}
StringGrid1.Canvas.Brush.Color := StringGrid1.Color;
StringGrid1.Canvas.FillRect(Rect);
StringGrid1.Canvas.Font := StringGrid1.Font;
StringGrid1.Canvas.Font.Style := [fsBold];
StringGrid1.Canvas.TextRect(Rect, Rect.Left + 2, Rect.Top + 2,
StringGrid1.Cells[ACol, ARow]);
End;
End;
So besser
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
|
|
Zitat
|