ColorManager.SetColor does not work with Ribbon |
Post Reply |
Author | |
Squale
Groupie Joined: 29 April 2009 Status: Offline Points: 25 |
Post Options
Thanks(0)
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? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Squale
Groupie Joined: 29 April 2009 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |