Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - BUG: Expand group and alternate coloring wrong
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: Expand group and alternate coloring wrong

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: BUG: Expand group and alternate coloring wrong
    Posted: 22 April 2017 at 9:31am
Hi;

Using v17.3.0 I set up the report control to use alternate coloring and grouping.
In one of my test cases I added only one record per group and then I recognized that the alternate color is used all the time when the first group row is expanded otherwise the default background color is correctly used:

Before - not expanding the first group row:



After - the first group row is now expanded:



You see, the same records get different colors depending on the expand state of the first group row. CRAZY!
When I finally collapse the first group record I have the same appearance as in the first screenshot - the color changes to the default coloring.
I believe the algorithm for switching colors is not distinguishing between group rows and regular rows! See void CXTPReportPaintManager::FillRow(CDC* pDC, CXTPReportRow* pRow, CRect rcRow) function!

Hope to get this fixed soon.
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.