Can't set report control glyphs in 16.2 |
Post Reply |
Author | |
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
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?
|
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
|
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.
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Yes, glyphs are part of the theme, so they get reloaded every time you change the theme.
|
|
Codejock support
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |