View Issue Details

IDProjectCategoryView StatusLast Update
0006721JEDI VCL00 JVCL Componentspublic2021-09-04 14:18
Reporterdwjedi21Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0006721: JvDBGrid - incorrect background for check boxes when changing background color for highlighted rows
DescriptionChanging the background color for a row using method GetCellParams results in an problem with the background of check boxes. By chance it is correct filled in the wrong color not at all or the title of the field is displayed.
Grid option gdRowSelect is used.
Themes used
Steps To Reproduce1) Activate themes for app
2) JvDBGrid with a datasource with boolean fields
3) Activate gdRowSelect
4) Change background color using event OnGetCellParam
5) Clicking different rows several times triggers the problem
    or
    when grid is focused the first time background is black
Additional Informationproblem is in procedure TJvDBGrid.DrawColumnCell(const Rect: TRect; DataCol: Integer;
  Column: TColumn; State: TGridDrawState); ca line 3843

instead of

if Highlight then
  DrawThemedHighlighting(Canvas, Rect)
else
  Canvas.FillRect(Rect);

using the following code solves the problem for me:_

if not (Highlight and
           DrawThemedHighlighting(Canvas, Rect)) then
  Canvas.FillRect(Rect);



TagsNo tags attached.

Activities

mh

2021-09-04 14:18

reporter   ~0021995

Are you able to create a git pull request about that one?

Issue History

Date Modified Username Field Change
2021-06-17 17:06 dwjedi21 New Issue
2021-09-04 14:18 mh Note Added: 0021995