Print Page | Close Window

[SOLVED] Drawing error with alternate row colors

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18965
Printed Date: 16 May 2024 at 4:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Drawing error with alternate row colors
Posted By: mgampi
Subject: [SOLVED] Drawing error with alternate row colors
Date 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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Replies:
Posted By: mgampi
Date 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 - 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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: ABuenger
Date Posted: 23 September 2011 at 1:08pm
Fixed for the next release.



uploads/1755/ReportSample_18965.zip - uploads/1755/ReportSample_18965.zip



-------------
Codejock support


Posted By: mgampi
Date Posted: 26 September 2011 at 5:02am
Thanks Andre!

-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net