Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Orange Buttons in Themes Collapse All
Subject Author Date
Michael Bailey Sep 10, 2006 - 8:53 AM

Hi,

I’m trying to modify the the color of the orange checked toolbar buttons in the themes CExtPaintManagerOffice2007_R2_LunaBlue and CExtPaintManagerOffice2007_R2_Obsidian. I’ve tried modifing the orange images in the \Res2007 like IDB_EXT_2007_BUTTON_R2_LUNA_BLUE_SIMPLE.bmp etc. but the buttons and the active Control Bars titles are still orange. There are a lot of hard coded colors in the different PaintManagers code, should I be changing one of these?

Does anyone know how to change the orange checked toolbar and active active Control Bars titles to another color?

Thanks,
Mike

Technical Support Sep 11, 2006 - 7:04 AM

The ribbon bar buttons and push button controls in the Office 2007 themes are painted using bitmaps. The toolbar buttons are painted in the same way as in Office 2003 theme using the CExtPaintManagerXP::PaintPushButton() method. The CExtPaintManagerXP::m_nIdxClrBtnHoverLeft, CExtPaintManagerXP::m_nIdxClrBtnHoverRight, CExtPaintManagerXP::m_nIdxClrBtnHovPresLeft, CExtPaintManagerXP::m_nIdxClrBtnHovPresRight, CExtPaintManagerXP::m_nIdxClrBtnPressedLeft and CExtPaintManagerXP::m_nIdxClrBtnPressedRight properties specify the color indices used in parameter of the CExtPaintManager::GetColor() method for retrieving the gradient colors for painting buttons. You can change these indices to your colors using your own paint manager class class with the InitTranslatedColors() virtual method:

void CYourPaintManager::InitTranslatedColors()
{
    C_BASE_OF_YourPaintManager::InitTranslatedColors()
     m_nIdxClrBtnHoverLeft = InstallColor( RGB(. . . ) );
. . .

Michael Bailey Sep 13, 2006 - 3:41 AM

Works great. Thanks!