Print Page | Close Window

Office2013/2016 themes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=23814
Printed Date: 21 November 2024 at 12:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Office2013/2016 themes
Posted By: Sunil
Subject: Office2013/2016 themes
Date 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/RibbonMDISample.zip" rel="nofollow - uploads/796/RibbonMDISample.zip
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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net