Skip to content

Commit e322abc

Browse files
committed
TLabeledDbGrid: added cell color highlight when HighlightCurrRow property is enabled even using VCL Styles
1 parent 53a93ce commit e322abc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Source/Vcl.LabeledDBCtrls.pas

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,11 @@ procedure TLabeledDbGrid.DrawColumnCell(const Rect: TRect; DataCol: Integer;
17541754
if DefaultWindowsStyleEnabled then
17551755
CellColor := clInfoBk
17561756
else
1757-
CellColor := GetCellColor;
1757+
//CellColor := GetCellColor;
1758+
begin
1759+
CellColor := LightenColor(GetStyledColor(clHighlight), 150);
1760+
Canvas.Font.Color :=LightenColor(GetStyledColor(clHighlightText), 25);
1761+
end;
17581762
end
17591763
else
17601764
CellColor := GetCellColor;

0 commit comments

Comments
 (0)