Floating pane gets wrong skin at program start |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Check that you have SetThemedFloatingFrames() call before you create / load panes.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
SetThemedFloatingFrames is called in my Pane-manager derived class's constructor! :(
|
|
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 |