Print Page | Close Window

Can't set report control glyphs in 16.2

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=21756
Printed Date: 15 November 2024 at 6:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can't set report control glyphs in 16.2
Posted By: markr
Subject: Can't set report control glyphs in 16.2
Date 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?



Replies:
Posted By: markr
Date 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.


Posted By: ABuenger
Date 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



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