Print Page | Close Window

Changing one color in a skin changes another color

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=11410
Printed Date: 14 September 2025 at 11:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing one color in a skin changes another color
Posted By: gautambjain
Subject: Changing one color in a skin changes another color
Date Posted: 12 July 2008 at 12:23am


Hello Dear Support and Members,

Please help!

I successfully changed the "BtnFace" color of Office2007.cjstyle skin. And it is working very well.

But the highlight color on toolbar and menu have automatically changed to brownish. I used to be orange color in the original Office2007 skin.

I have rechecked the modified skin. In the skin builder, it shows orange for toolbar and menu highlight color.

But when I run the program, it shows brownish orange. See the image below.



Please help.

IMPORTANT NOTE: 1) This toolbar is in a dialog box. 2) The toolbar and menus were created using CXTPOffice2003Theme. I could not use CXTPOffice2007Theme because it showed the toolbar and menus in plain black and white color.

See the below image if I use CXTPOffice2007Theme for the toolbar in the dialog box using the below code




To code used to set the toolbar to the dialog box is below:


VERIFY(InitCommandBars());
    CXTPCommandBars* pCommandBars = GetCommandBars();
   
    m_pStandardToolBar = pCommandBars->Add(_T("Standard"), xtpBarTop, RUNTIME_CLASS(CXTPToolBar));
    m_pStandardToolBar->LoadToolBar(IDR_TOOLBAR_STANDARD);
    m_pStandardToolBar->EnableDocking(xtpFlagStretched);
    m_pStandardToolBar->ModifyBarStyle(CBRS_GRIPPER, 0);
    pCommandBars->GetCommandBarsOptions()->bShowExpandButtonAlways = FALSE;
    pCommandBars->GetCommandBarsOptions()->bAutoUpdateShortcuts  = TRUE;

    //the following 2 linces will show shortcut keys in the tooltips.
    //cool
    pCommandBars->GetCommandBarsOptions()->bToolBarAccelTips = TRUE;
    pCommandBars->GetShortcutManager()->SetAccelerators(IDR_MAINFRAME);

    m_pStandardToolBar->SetPaintManager(new CXTPOffice2007Theme());



Please help. There are 2 issues above:
1. Brownish color
2. Black and white color on using CXTPOffice2007Theme

Thanks.




Replies:
Posted By: gautambjain
Date Posted: 01 August 2008 at 2:42am

Please reply to the above post


Posted By: Smucker
Date Posted: 01 August 2008 at 8:58am
For #1, Codejock generates additional colors based on the colors you set. The 3D highlight color is the bright edge (the orange you can see as a single line on the top and left of the button).

For #2, you're probably linking statically and not including the rc files with the images required for the Office 2007 theme. In your application.rc2 file, include:

#include <XTToolkitPro.rc>
#include "Styles\Office2007Blue\Office2007Blue.rc"
#include "Styles\Office2007Aqua\Office2007Aqua.rc"
#include "Styles\Office2007Black\Office2007Black.rc"
#include "Styles\Office2007Silver\Office2007Silver.rc"


Hope this helps!

PS. Mixing skins and themes involves a lot of trial and error!


-------------
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)




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