Print Page | Close Window

Command Bar Resource Problem? Upgrading to 11.1.3

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7839
Printed Date: 13 November 2025 at 2:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Command Bar Resource Problem? Upgrading to 11.1.3
Posted By: robosport
Subject: Command Bar Resource Problem? Upgrading to 11.1.3
Date 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)
 



Replies:
Posted By: Oleg
Date 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


Posted By: robosport
Date 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!



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