![]() |
Selektierte Zeile fett
Hallo
ich habe ein Problem mit meinem Stringgrid. In diesem Stringgrid möchte ich eine bestimmte Zeile fett haben. Diese Zeile wird automatisch selektiert (funktioniert auch einwandfrei) in "ondrawcell"
Delphi-Quellcode:
wenn ich das canvas oben weglasse wird das gesamte stringgrid fett
if fett then
begin if (acol = x) and (arow = y) then begin with (sender as tstringgrid) do begin canvas.Font.Style := [fsbold]; end; end; end; wenn ich es stehenlasse passiert nichts kann mir jemand helfen? PS: ![]() |
Re: Selektierte Zeile fett
Du musst im else Zweig, den normalen Fontstyle setzen
|
Re: Selektierte Zeile fett
ändert sich trotzdem nichts :S
Delphi-Quellcode:
edit:
if fett then
begin if (acol = x) and (arow = y) then begin with (sender as tstringgrid) do begin Font.Style := [fsbold]; end; end else (sender as tstringgrid).Font.Style := []; end; ... k danke:D hab was vergessen^^ geht jetzt |
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:28 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