Print Page | Close Window

Black ribbon from startup not possible?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=11499
Printed Date: 08 June 2024 at 3:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Black ribbon from startup not possible?
Posted By: znakeeye
Subject: Black ribbon from startup not possible?
Date Posted: 20 July 2008 at 5:28am
XTP 12.0.1, XP SP2, SDI-application with panes.
 
In CMainFrame constructor:
 
XTPSkinManager()->GetResourceFile()->SetModuleHandle(hModule);
XTPSkinManager()->LoadSkin(NULL, _T("NORMALBLUE.INI"));
 
XTPOffice2007Images()->SetHandle(hModule, _T("OFFICE2007BLACK.INI"));
 
Then when I create multiple panes in CMainFrame::OnCreate, some of them are initially seen as if "OFFICE2007BLUE" was set! After a second or so, they turn black. Why this delay?!
 
What is going on? I explicitly set black ribbon-style, way before the panes are created!



Replies:
Posted By: Oleg
Date Posted: 21 July 2008 at 4:15am
Hi,
 
What theme you have for Panes ? Try to set theme before you create panes.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 21 July 2008 at 6:15pm
// Set Office 2007 Theme
CXTPPaintManager::SetTheme(xtpThemeRibbon);
-- InitCommandBars --
-- Create ribbon --
-- Create child windows (panes) --
 
m_paneManager.InstallDockingPanes(this);
m_paneManager.EnableKeyboardNavigate();
m_paneManager.GetPaintManager()->m_nSplitterSize = 2;
m_paneManager.HideClient(TRUE);
 
Then I create its panes! I don't specify a theme (haven't I already set it above?).


Posted By: Oleg
Date Posted: 22 July 2008 at 1:57am
Hi,
Above you set theme for CommandBars. you have set theme for DockingPane too.
 
Find m_paneManager.SetTheme line and move it after m_paneManager.InstallDockingPanes


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 22 July 2008 at 4:35pm
That solved it for all but one pane. I also had to move "GetPaintManager()->SetColumnStyle(xtpReportColumnOffice2007);" from the constructor of my report controls, to PreSubclassWindow!
 
Thanks Oleg!



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