Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - xtpPaneThemeOffice2007 broken
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

xtpPaneThemeOffice2007 broken

 Post Reply Post Reply
Author
Message
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Topic: xtpPaneThemeOffice2007 broken
    Posted: 23 February 2008 at 10:07am
When I use
 
 m_paneManager.SetTheme(xtpPaneThemeOffice2007);
 
then it doesn't show the tabs on the pans that are like a tab control.
 
All other themes works fine.  You still get the tooltips, you can still click (if you know where) but no labels and no tab outlines etc, just the grey background.
 

Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2008 at 10:19am
hmmm
 
looks to be because
 
XTPOffice2007Images()->IsValid()
 
returns false in
 
CXTPTabPaintManager::CAppearanceSetPropertyPage2007::FillTabControl
 
how to get these images and files etc configured correctly?
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: 23 February 2008 at 10:24am
Hi,
 
Add line in your rc2 file:
 
#include "Styles\Office2007Blue\Office2007Blue.rc"
 
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2008 at 12:29am
OK, thanks for that.  it works now.
 
How do you get Office2007 theme to mirror the selected Luna theme though?  It stays blue all the time... I see there are other themes, do you need to manually change the theme?  It tracks the OS when you choose Office2003 themes... why not for Office 2007 theme?
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: 24 February 2008 at 3:06am
Hi,
its the thing of Office2007 products and our Office2007 theme - its always blue/black or silver in all OS.  If you don't like it just don't use this theme.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2008 at 3:40pm
OK, I understand thanks for that.  It's a shame, since the Office2007 theme for things like docking pane tab headers is much nicer than the Office 2003 theme etc.
 
You might want to look at CXTPReportControl then, since its header does change colour when set to Office2007 theme.
 
How about an option where we can tell the theme to mirror the OS setting :)
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2008 at 3:42pm
the reason it's a problem also, is that unless you have all controls everywhere set to use the Office2007 theme, when you change system colour themes (i.e. Luna themes on XP), then some parts of the app change colour and others don't, you can end up with a real mixture of colours which is a bit ugly.
 
for us, since we are using modules to provide different parts of the GUI, it's even more difficult, since all different modules would need to be told if the user were to select a different colour scheme.
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2008 at 6:20pm
For another example, take CXTCaption
 
there's no Office2007 theme for this, so I've got this sexy black GUI, with a blue caption.
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: 04 March 2008 at 2:38am
adrien, I solved that sexiness problem by putting all my windows inside panes. Looks great in all modes :)
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.203 seconds.