Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Problem mit einen XStringgrid und DrawCell (https://www.delphipraxis.net/30051-problem-mit-einen-xstringgrid-und-drawcell.html)

bekosch 19. Sep 2004 08:20


Problem mit einen XStringgrid und DrawCell
 
Ich hab einen seltsamen Fehler beim DrawCell bei einen XStringGrid.
Mein Code schaut folgendermaßen aus :


Delphi-Quellcode:
procedure TFRFahrzeugsuche.XSGDatenausgabeDrawCell(Sender: TObject; ACol,
  ARow: Integer; Rect: TRect; State: TGridDrawState);
begin

if odd(ARow) then begin
    XSGDatenausgabe.Canvas.Brush.Color := clCream;
    XSGDatenausgabe.Canvas.FillRect(Rect);
  end;
end;
Er schreibt mir aber immer die Zeile doppelt, einmal den Ausgabetext in die Zeile (weiß) und die Cream Zeile bleibt leer? An was kann das noch liegen?


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:00 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz