Applying a theme to the whole interface |
Post Reply |
Author | |
yves
Newbie Joined: 05 June 2017 Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 22 August 2017 at 2:36pm |
Looking at the samples, it's not clear to me what the recommended and/or easiest way one should use to apply a theme (e.g. xtpThemeVisualStudio2015) to the whole UI (Main Frame, Ribbon, Toolbars, Panes, Status Bar, ...). For example, if I add the following line XTPPaintManager()->SetTheme(xtpThemeVisualStudio2015); as the end of my CMainFrame::OnCreate() method, my program now asserts (ASSERT(NULL != m_pGroupNormal)) on XTRibbonMarkupTheme.cpp#548 whereas it was running fine without it. Anyone cares shedding some light on this whole topic of theming mechanism in the toolkit? Thanks a lot! Version 18.0.1 on Windows 10 w/ VS 2017.3 and SDK 8.1 |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(1)
|
Hello yves,
About assertion - I can suppose that you forgot to call SetHandle() before SetTheme()
For example look at RibbonMDISample CMainFrame::OnOptionsStyle() > CMainFrame::SetCommandBarsTheme() Regards, Oleksandr Lebed
|
|
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 |