Autor Beitrag
SportGoofy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 47

Win XP Prof.
MS Visual C# 05 EE
BeitragVerfasst: Sa 13.10.07 13:55 
Hi!

Suche nach einer Möglichkeit den dünnen Linien zwischen den Feldern im Stringgrid
eine andere Farbe zu geben. Gibt es da ne Eigenschaft?

Mein Stringgrid ist über DrawCell selbstgemalt.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Sa 13.10.07 19:45 
Hallo,


mal die Linien in OnDrawCell mit der gewünschten Farbe,
die Linien liegen außerhalb der rect-Koordinaten:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
with StringGrid.Canvas do
  begin
  Pen.Color := clRed;
  Rectangle(Rect.Left-1,Rect.Top-1,Rect.Right+1,Rect.Bottom+1);
  end;

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )