Einzelnen Beitrag anzeigen

MichaelT

Registriert seit: 14. Sep 2005
Ort: 4020 Linz
532 Beiträge
 
Delphi 10.3 Rio
 
#5

AW: DBGrid -> Selektierte Zeile Fett

  Alt 24. Feb 2017, 13:00
DefaultDrawing steht vermutlich noch auch true.

Hallo,

habe es erweitert:

Delphi-Quellcode:
if (gdSelected in State) then
 begin

  DBG_WorkFlow_GruppenBau.Canvas.FillRect(Rect);
  DBG_WorkFlow_GruppenBau.Canvas.Font.Style := DBG_WorkFlow_GruppenBau.Canvas.Font.Style + [fsBold];
  DBG_WorkFlow_GruppenBau.Canvas.Font.Color := clBlack;
  DBG_WorkFlow_GruppenBau.DefaultDrawColumnCell(Rect, DataCol, Column, State);

 end
 else
 begin

  DBG_WorkFlow_GruppenBau.Canvas.Font.Style := DBG_WorkFlow_GruppenBau.Canvas.Font.Style - [fsBold];
  DBG_WorkFlow_GruppenBau.DefaultDrawColumnCell(Rect, DataCol, Column, State);

 end;
.. aber es ändert sich nichts ...

Der DrawingStyle des DBGrids ist auch gdsGradient. Liegt es eventuell daran ?
  Mit Zitat antworten Zitat