Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Can't set report control glyphs in 16.2
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can't set report control glyphs in 16.2

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


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Topic: Can't set report control glyphs in 16.2
    Posted: 28 June 2013 at 1:07pm
In previous releases of XTP, we could set the report control glyphs using the following code:

CBitmap bmp;
CXTPResourceManager::AssertValid(XTPResourceManager()->LoadBitmap(&bmp, IDB_BITMAP_REPORT_GLYPHS));
GetReportCtrl().GetPaintManager()->GetGlyphs()->SetMaskColor(CR_MASK);
VERIFY(GetReportCtrl().GetPaintManager()->GetGlyphs()->SetIcons(bmp, 0, 11, CSize(0, 0)));

The code (which is invoked during OnCreate of CXTPReportView derived view) still executes without error, but no longer produces the expected result.

How can we achieve this in v16.2?
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 28 June 2013 at 1:15pm
Nevermind, I figured it out. The application of themes appears to have changed significantly in v16.2, and now I need to apply this logic whenever the report control theme changes.
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: 28 June 2013 at 4:25pm
Yes, glyphs are part of the theme, so they get reloaded every time you change the theme.

Codejock support
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.203 seconds.