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.
|