From d6e99973ac3a7559b5a9587e827265b861ee6f90 Mon Sep 17 00:00:00 2001 From: fduron <61990117+fduron@users.noreply.github.com> Date: Tue, 9 Nov 2021 17:21:46 -0600 Subject: [PATCH] Update JvDBGrid.pas When using DrawingStyle other than gdsThemed glyps and checkbox show mixed background.If DrawThemedHighlighting is False filling the rect before drawing transparent bitmap will fix this issue. --- jvcl/run/JvDBGrid.pas | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/jvcl/run/JvDBGrid.pas b/jvcl/run/JvDBGrid.pas index 6ab66d6716..dea5d2e8d7 100644 --- a/jvcl/run/JvDBGrid.pas +++ b/jvcl/run/JvDBGrid.pas @@ -19,7 +19,7 @@ Polaris Software Lionel Reynaud Flemming Brandt Clausen - Frédéric Leneuf-Magaud + Frédéric Leneuf-Magaud Andreas Hausladen Ronald Hoek @@ -51,7 +51,7 @@ a gap after the last column). This bug comes from DBGrid.pas. ----------------------------------------------------------------------------- -2004/07/08 - WPostma merged changes by Frédéric Leneuf-Magaud and ahuser.} +2004/07/08 - WPostma merged changes by Frédéric Leneuf-Magaud and ahuser.} // $Id$ @@ -3842,7 +3842,10 @@ procedure TJvDBGrid.DrawColumnCell(const Rect: TRect; DataCol: Integer; begin Bmp := GetGridBitmap(TGridPicture(I)); if Highlight then - DrawThemedHighlighting(Canvas, Rect) + begin + if not DrawThemedHighlighting(Canvas, Rect) then + Canvas.FillRect(Rect); + end else Canvas.FillRect(Rect); DrawBitmapTransparent(Canvas, (Rect.Left + Rect.Right + 1 - Bmp.Width) div 2,