Print Page | Close Window

ColorManager.SetColor does not work with Ribbon

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14396
Printed Date: 06 October 2024 at 10:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ColorManager.SetColor does not work with Ribbon
Posted By: Squale
Subject: ColorManager.SetColor does not work with Ribbon
Date Posted: 27 May 2009 at 11:43am
Hi,

I try to customize highlight color within a commandbar containing a RibbonBar... SetColor has no effet...

CommandBarsGlobalSettings.Office2007Images = App.Path & "\Styles\Office2007Black.dll"
CommandBarsGlobalSettings.ColorManager.SetColor XPCOLOR_HIGHLIGHT, RGB(0,255,0) 'Green
CommandBars.PaintManager.RefreshMetrics
CommandBars.RecalcLayout
CommandBars.Item(1).Controls.Add xtpControlButton, ID_TRACE, "trace"

Work fine and my button is hilghlight by a green rectangle.

If I add
Set RibbonBar = CommandBars.AddRibbonBar("Ribbon")
My button is hilglighted by a orange rectangle (red when clicked)...

Is there any way to prevent this or customize the office2007 style?





Replies:
Posted By: Oleg
Date Posted: 28 May 2009 at 5:08am
Hi,
 
Ribbon style usees bitmaps from  Office2007Black.dll to draw self. You can update images in Office2007Black.dll with your own.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Squale
Date Posted: 28 May 2009 at 8:12am
OK many thanks for your help Oleg...

What is the easiest way to update this dll?

Simply editing this dll, I van not found any "highlight" bmp ressource... Where can I get this yellow highlight color defined?

In this dll I can see a workspaceTopLeft bitmap... it seems that this workspace background is not displayed when using tabworkspace.



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