Print Page | Close Window

CommandBar Background Color using Office2007 imgs

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=16647
Printed Date: 06 October 2024 at 9:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommandBar Background Color using Office2007 imgs
Posted By: jpbro
Subject: CommandBar Background Color using Office2007 imgs
Date Posted: 29 April 2010 at 12:37pm
Is there a way to get the background color of a CommandBar when using an Office2007 images file for the CommandBars control?




-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Replies:
Posted By: Aaron
Date Posted: 05 May 2010 at 2:33pm
Hi Jason,
 
Did you try:
 
       CommandBars.GetSpecialColor(XPCOLOR_TOOLBAR_FACE)
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: jpbro
Date Posted: 05 May 2010 at 2:52pm
Hi Aaron, thanks a lot for the reply.

I have tried XPCOLOR_TOOLBAR_FACE and other (MENUBAR_FACE, amongst others). As you can see in the following examples, the colors don't match (top portion of image is CommandBars control, bottom half is the result of GetSpecialColor)

With XPCOLOR_TOOLBAR_FACE:




This is the result of XPCOLOR_MENUBAR_FACE:




This is the result of XPCOLOR_FRAME (close, but no cigar):





I forgot to mention that the CommandBar was created using the AddMenuBar() method (if that helps).

Thanks again.



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Aaron
Date Posted: 06 May 2010 at 1:20am
Hi Jason,
 
Also tried STDCOLOR_BTNFACE ?
 
Looks like the menu background is painted with this color, at least with XP
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: chesterkill
Date Posted: 29 June 2010 at 9:05pm
sir good day... i like your design... can i ask what theme did you use??? the tab "dashboard","budgets","and "contracts is a commandbar?????? please help me... i'm a newbie in CODEJOC... and i really2x like your design.....

-------------
CODEJOCKS



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