Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Changing one color in a skin changes another color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing one color in a skin changes another color

 Post Reply Post Reply
Author
Message
gautambjain View Drop Down
Newbie
Newbie


Joined: 03 July 2008
Location: India
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote gautambjain Quote  Post ReplyReply Direct Link To This Post Topic: Changing one color in a skin changes another color
    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.

Back to Top
gautambjain View Drop Down
Newbie
Newbie


Joined: 03 July 2008
Location: India
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote gautambjain Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2008 at 2:42am

Please reply to the above post
Back to Top
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post 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)

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.045 seconds.