Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - v17 Beta 1 Row Color Bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

v17 Beta 1 Row Color Bug

 Post Reply Post Reply
Author
Message
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (1) Thanks(1)   Quote markr Quote  Post ReplyReply Direct Link To This Post Topic: v17 Beta 1 Row Color Bug
    Posted: 02 July 2015 at 4:10pm
In XTP V17 Beta 1, setting the color of a report control AND making it bold will cause the color to be lost.

For example, if I override GetItemMetrics for a report record and do this:

pDrawArgs->pItem->SetTextColor(COLORREF_BLUE);

... then the report row will render in the expected color (blue in this case).

However, if I do this:

pDrawArgs->pItem->SetTextColor(COLORREF_BLUE);
pDrawArgs->pItem->SetBold(TRUE);

... then the report row will be displayed in a bold font, but will NOT be rendered in blue. So it seems we can have one or the other, but not both, which is a bug.

This combination worked fine in the v16.3.0 release.

Regards,

Mark R.
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 284
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post Posted: 09 July 2015 at 11:41pm
Thanks for catching this one. The issue has been fixed.
Regards,
  Alexander
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2015 at 11:19am
Excellent, thanks again.
Back to Top
Romonaga View Drop Down
Newbie
Newbie


Joined: 16 July 2015
Location: Chicago
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Romonaga Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2015 at 1:26pm
This is broke in the 16.4 as well. I need this to work, however I can not use BETA software. Please advise how I can patch 16.4 to fix this.

** UPDATE **
While I was able to Create and Set my own font to handle this bug in the control, I still would like to know how I can patch 16.4 to fix this broken feature. Glaring bug is Glaring bug.
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.