![]() |
Command Bar Resource Problem? Upgrading to 11.1.3 |
Post Reply
|
| Author | |
robosport
Groupie
Joined: 20 June 2005 Location: United States Status: Offline Points: 62 |
Post Options
Thanks(0)
Quote Reply
Topic: Command Bar Resource Problem? Upgrading to 11.1.3Posted: 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) |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
robosport
Groupie
Joined: 20 June 2005 Location: United States Status: Offline Points: 62 |
Post Options
Thanks(0)
Quote Reply
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!
|
|
![]() |
|
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 |