Print Page | Close Window

Floating pane gets wrong skin at program start

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=15618
Printed Date: 05 May 2024 at 1:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Floating pane gets wrong skin at program start
Posted By: znakeeye
Subject: Floating pane gets wrong skin at program start
Date Posted: 13 November 2009 at 5:54pm
13.2.1.
I noticed that even though I explicitly load Ribbon + Aqua skin, any floating panes are first drawn in Blue - before the rest of the application is shown! Then, after 1-2 seconds, they are redrawn in the right color (aqua). You could argue that floating panes should not be shown before the main frame is shown... hmm?
 
 
I do this in CMainFrame::CMainFrame:
XTPOffice2007Images()->SetHandle(GetSkinModule(), _T("OFFICE2007AQUA.INI"));
XTPSkinManager()->LoadSkin(NULL, _T("NormalAqua.ini"));
 
I do this in CMainFrame::OnCreate:
XTPPaintManager()->SetTheme(xtpThemeRibbon);
GetCommandBars()->SetTheme(xtpThemeRibbon);
m_paneManager.SetTheme(xtpPaneThemeOffice2007);
m_paneManager.GetPaintManager()->RefreshMetrics();
 
Are the images reset at some point?


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: Oleg
Date Posted: 16 November 2009 at 5:58am
Hi,
 
Check that you have SetThemedFloatingFrames() call before you create / load panes.


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


Posted By: znakeeye
Date Posted: 16 November 2009 at 7:58pm
SetThemedFloatingFrames is called in my Pane-manager derived class's constructor! :(



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