![]() |
AW: StringGrid Frage
Wenn Du genau den Source aus #6 verwendet hast, dann fehlt dir der unselectierte Teil.
Gruß K-H |
AW: StringGrid Frage
Sorry verstehe ich nicht was du meinst ?
mfg Schuby |
AW: StringGrid Frage
.. wenn man über die Zelle drübermalt muss man dann nicht auch den Text neu zeichnen?
Grüße Klaus |
AW: StringGrid Frage
Ich habs, endlich bleiben die Zellen nicht mehr blau,
auch nicht beim verlassen einer Zelle
Delphi-Quellcode:
Danke für eure Hilfe
procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState); const SelectedColor = clBtnFace; var Grid: TStringGrid; s: string; begin Grid := Sender as TStringGrid; s := Grid.Cells[ACol, ARow]; if (gdSelected in State) and not (gdFocused in State) then begin Grid.Canvas.Brush.Color := Grid.Color; Grid.Canvas.FillRect(Rect); InflateRect(Rect, -2, -2); Grid.Canvas.Font.Color := Grid.Font.Color; DrawText(Grid.Canvas.Handle, PChar(s), Length(s), Rect, DT_LEFT); end; end; mfg Schuby |
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:46 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz