[SOLVED] XTPRibbonControlSystemButton Theme Change |
Post Reply |
Author | ||
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
Posted: 19 August 2016 at 5:32am |
|
I can't find a way to update the XTPRibbonControlSystemButton theme.
The XTPRibbonControlSystemButton is the first Ribbon button, typically called "File", with the fancy color following the Office themes. E.g. when changing the Office2013 theme from Word to PowerPoint, the color of the XTPRibbonControlSystemButton is not changed. The only way to fix this is to delete and recreate the entire Ribbon. There must be an easier way?
-cpede |
||
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
||
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
|
Hello cpede,
I can't reproduce this behavior. Even with v16.4 when backstage doesn't change color, but system button change it. Please explore RibbonSample for theme changing. It works as expected. Regards, Oleksandr Lebed |
||
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
|
When I e.g. select Office2013 PowerPoint Theme, and switches between Dark and Light Gray sub-theme the sample crashes :-(
But it seems that the sample also recreates the backstage (testing and reusing the individual backstage pages). What exactly generates the repaint of the system button?
|
||
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
||
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
|
Are you sure that use v17.2 of library ? I fixed this issue on 1st of February 2016 :-) in RibbonSample in CMainFrame::OnOptionsStyleOffice2013LtGray() and CMainFrame::OnOptionsStyleOffice2013DkGray() replace SetTheme() with SetStyle().
SystemButton is drawn with other ribbon controls in cycle in CXTPRibbonBar::DrawCommandBar() > ToolkitPro1720UD.dll!CXTPRibbonMarkupTheme::DrawRibbonFrameSystemButton(CDC * pDC, CXTPRibbonControlSystemButton * pControl, CRect rc) Line 842 C++ ToolkitPro1720UD.dll!CXTPRibbonControlSystemButton::Draw(CDC * pDC) Line 101 C++ ToolkitPro1720UD.dll!CXTPRibbonBar::DrawCommandBar(CDC * pDC, CRect rcClipBox) Line 1631 C++ ToolkitPro1720UD.dll!CXTPCommandBarAnimation::OnPaint(CPaintDC & paintDC) Line 348 C++ ToolkitPro1720UD.dll!CXTPCommandBar::OnPaint() Line 1557 C++ |
||
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
|
Super, thanks I got it to work :-)
-cpede
|
||
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
||
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 |