Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [SOLVED] Drawing error with alternate row colors
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Drawing error with alternate row colors

 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: [SOLVED] Drawing error with alternate row colors
    Posted: 19 September 2011 at 10:50am
Hi;

Take a look at my screenshot:

The item is drawn with wrong background color "White" on alternate rows.
The item is of type CXTPReportRecordItemText and I have NO custom GetItemMetrics - neither record nor report - implemented.

To initialize the control I use this part of code:
    Report_.AddColumn(new CXTPReportColumn(0, Caption, 400));

    Report_.ShowHeader(FALSE);
    Report_.GetReportHeader()->AllowColumnRemove(FALSE);
    Report_.GetReportHeader()->AllowColumnReorder(FALSE);
    Report_.GetReportHeader()->AllowColumnSort(FALSE);

    Report_.InitialSelectionEnable(FALSE);

    Report_.GetPaintManager()->SetGridStyle(FALSE, xtpReportGridNoLines);
    Report_.GetPaintManager()->m_bUseAlternativeBackground=TRUE;
    Report_.GetPaintManager()->m_clrAlternativeBackground=RGB(236,239,244);


As soon as I remove the line Report_.ShowHeader(FALSE) the items are drawn correctly!

How can I fix this when the report header is hidden?
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
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 Posted: 20 September 2011 at 10:16am
I believe these two issues have the same origin (=ShowHeader(FALSE)):

http://forum.codejock.com/forum_posts.asp?TID=18945

and



is also not transparent!
So it's definitely a bug in release 15.1.3!

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
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2011 at 1:08pm
Fixed for the next release.



uploads/1755/ReportSample_18965.zip

Codejock support
Back to Top
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 Posted: 26 September 2011 at 5:02am
Thanks Andre!
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.125 seconds.