Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Office2013/2016 themes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Office2013/2016 themes

 Post Reply Post Reply
Author
Message
Sunil View Drop Down
Groupie
Groupie
Avatar

Joined: 27 October 2004
Location: India
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sunil Quote  Post ReplyReply Direct Link To This Post Topic: Office2013/2016 themes
    Posted: 11 February 2019 at 12:28am
Hello,

Office 2013 & 2016 themes breaks if applied before creating ribbon. But, all other themes work well.
And also the enum value for XTPVisualTheme.xtpThemeOffice2013 and XTPVisualTheme.xtpThemeOffice2016 are same in commandbars and for many other controls across ActiveX suite.

I have attached modifying existing C# sample:

1. In the Load event, I am applying 2013 theme before creating ribbon and I get a blackout.

2. If it is applied after creating ribbon, it works as expected.

3. I also tried the same with Windows7 and 2007/2010 themes, they too work as expected, whether you apply theme before or after creating ribbon.

uploads/796/2013theme_blackout.png




Try enabling disabling test case 1/2/3 below snippet in the sample and check.
I have attached a screenshot as well

      private void frmMain_Load(object eventSender, System.EventArgs eventArgs)
      {
         CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings();
         ////Test case: #1
         //CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Windows7.dll", "Windows7Blue.ini");
         //CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeResource;
         ////Test case: #2
         CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Office2013.dll", "Office2013White.ini");
         CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeOffice2013;
         CreateRibbonBar();
         ////Test case: #3
         //CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeOffice2013;


Sunil R.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.