Delphi-PRAXiS
Seite 2 von 2     12   

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 ein paar Fragen zum StringGrid (https://www.delphipraxis.net/99370-ein-paar-fragen-zum-stringgrid.html)

s-off 11. Sep 2007 16:04

Re: ein paar Fragen zum StringGrid
 
z.B. so für Zeile 3

Delphi-Quellcode:
Procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
   Rect: TRect; State: TGridDrawState);

 [...]

Begin

 [...]

   With (Sender As TStringGrid) Do Begin
      If ARow = 3 Then Begin
         Canvas.Font.Style := [fsBold];
         Canvas.TextOut(Rect.Left, Rect.Top, StringGrid1.Cells[ACol, ARow]);
      End;
   End;

 [...]

End; // OnDrawCell
Edit: ah, schon selber rausgefunden :-D


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:03 Uhr.
Seite 2 von 2     12   

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