Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Command Bar Resource Problem? Upgrading to 11.1.3
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Command Bar Resource Problem? Upgrading to 11.1.3

 Post Reply Post Reply
Author
Message
robosport View Drop Down
Groupie
Groupie


Joined: 20 June 2005
Location: United States
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote robosport Quote  Post ReplyReply Direct Link To This Post Topic: Command Bar Resource Problem? Upgrading to 11.1.3
    Posted: 20 August 2007 at 4:13am
I just upgraded my project from XTP 10.4.2 to the latest (at the time this was written) XTP 11.1.3.
 
The toolbars and menus were created using the Command Bars Designer that comes with XTP. I use xtpThemeOffice2007 theme or xtpThemeRibbon theme set in the Paint Manager - Paint Theme of the Command Bars Designer. It worked great for a couple years now with several upgrades of XTP.
 
The problem is part of the toolbar is black (the background on the right without buttons) and the mouse over highlight color changes the button to black instead of the orange color for either the Office2007 or Ribbon themes. (see sample captures)
 
Any ideas what is wrong? As a hint I noticed when I have the Ribbon theme selected in the Command Bars Designer and I compile/run my app in debug mode it kicks out an assert on line 721 of xtpribbontheme.cpp for what appears to be every button loaded on the toolbar. This assert is not present when the Office2007 theme is selected but the buttons are black during mouse over. Only other thing that has changed (other than XTP version) is that this is a new development machine. My rc2 file has the following line in it: #include <XTToolkitPro.rc>
 
Here are sample captures showing the problem:
 
10.4.2 Not Over:  (correct color)
 
10.4.2 Over:         (correct color)
 
11.1.3 Not Over:  ( wrong background color)
 
11.1.3 Over:        ( wrong background color)
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 20 August 2007 at 6:01am
Hello,
You also need to add Ribbon resources to your exe:
 
add in rc2 file:
#include "Ribbon\Styles\Office2007Blue\Office2007Blue.rc"
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
robosport View Drop Down
Groupie
Groupie


Joined: 20 June 2005
Location: United States
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote robosport Quote  Post ReplyReply Direct Link To This Post Posted: 20 August 2007 at 8:11am
Perfect response as always Oleg. That fixed it. I added the aqua and black ribbon resources while I was at it.
 
Thank you!
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.063 seconds.