Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - ColorManager.SetColor does not work with Ribbon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ColorManager.SetColor does not work with Ribbon

 Post Reply Post Reply
Author
Message
Squale View Drop Down
Groupie
Groupie


Joined: 29 April 2009
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Squale Quote  Post ReplyReply Direct Link To This Post Topic: ColorManager.SetColor does not work with Ribbon
    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?


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Squale View Drop Down
Groupie
Groupie


Joined: 29 April 2009
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Squale Quote  Post ReplyReply Direct Link To This Post 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.
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.187 seconds.