Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CommandBar Background Color using Office2007 imgs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CommandBar Background Color using Office2007 imgs

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: CommandBar Background Color using Office2007 imgs
    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

Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
chesterkill View Drop Down
Newbie
Newbie


Joined: 28 June 2010
Location: Philippines
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote chesterkill Quote  Post ReplyReply Direct Link To This Post 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
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.125 seconds.