Black ribbon from startup not possible? |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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!
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
What theme you have for Panes ? Try to set theme before you create panes.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
// 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?).
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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!
|
|
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 |