Ribbon with xtpThemeResource |
Post Reply |
Author | |
JamesP
Groupie Joined: 07 January 2009 Location: United Kingdom Status: Offline Points: 73 |
Post Options
Thanks(0)
Posted: 03 December 2014 at 9:12am |
If I set up a ribbon bar with the theme xtpThemeResource, I find that it works well and looks great apart from the fact that the group caption text is clipped.
It appears to be down to the fact that m_nGroupCaptionHeight is too small. This happens because the base class CXTPPaintManager::UpdateFonts function is called and the SetCommandBarsFontIndirect is set up with a CLogFont structure with a smaller lfHeight member than is (presumably) used in the CXTPRibbonThemeResource::DrawGroup function. The xtpThemeRibbon theme overrides the UpdateFonts and the SetCommandBarsFontIndirect is set up with a CLogFont structure with a bigger lfHeight member. Is this a bug or should I not be using the xtpThemeResource with a ribbon? I managed to find a solution by copying the ribbon UpdateFonts function into the CXTPRibbonThemeResource class but I don't like this solution. Any help or advice would be appreciated, James |
|
mcmastl
Admin Group Joined: 14 April 2015 Status: Offline Points: 79 |
Post Options
Thanks(0)
|
Hi James, we have informed our development team of the issue and will be looking into it. Thank you for bringing this to our attention. If the issue has been resolved please let us know. Thank you.
|
|
Luke McMasters, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |