Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Floating pane gets wrong skin at program start
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Floating pane gets wrong skin at program start

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Floating pane gets wrong skin at program start
    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/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 16 November 2009 at 7:58pm
SetThemedFloatingFrames is called in my Pane-manager derived class's constructor! :(
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.