Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Menu Bar Color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Menu Bar Color

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

Joined: 25 February 2009
Status: Offline
Points: 131
Post Options Post Options   Thanks (0) Thanks(0)   Quote iamgtd Quote  Post ReplyReply Direct Link To This Post Topic: Menu Bar Color
    Posted: 17 September 2010 at 5:43am

I want to exclude the menubar in a form from the skinning in a vb6 app because I want to set the color of the menubar manually.

 I have found the SetColor method of the ColorManager. But I have no indention how to use this method. I havn't found a way to create a reference to the ColorManager. Please give me a short code example. 
 
thx
Back to Top
Hemesh View Drop Down
Senior Member
Senior Member


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post Posted: 17 September 2010 at 6:11am
have you turned off the UseVisualStyle property of the CommandBar?
Product: Xtreme SuitePro (ActiveX) version 18.5.0

Platform: Windows 7 Enterprise (64-bit)

Language: Visual Basic 6.0
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: 17 September 2010 at 7:40am
Hi,
 
I think it is possible but then you have to exclude Commandbars from getting skinned and set own color:
 
XtremeCommandBars.CommandBarsGlobalSettings.ColorManager.SetColor STDCOLOR_BTNFACE, vbyellow
 
Note: Setting background of menu seems only be possible STDCOLOR_BTNFACE but that means every single item of commandbars object will be painted with same color (which is using STDCOLOR_BTNFACE)
 
 
 
 
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
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: 17 September 2010 at 7:43am
Hi again,
 
If you are going to use same color all the time, I suggest you change your Skin and set the color of menu manually. You don't have to add code to change color and don't have to exclude anything. Only have to change the Skin with CJ SkinBuilder Wink
 
Good luck
 
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
iamgtd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 February 2009
Status: Offline
Points: 131
Post Options Post Options   Thanks (0) Thanks(0)   Quote iamgtd Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2010 at 8:15am
Thanks for your hint.
 
In my case in the form is the standard menubar used and not the Codejock commandbar. From Codejock I'm only using the Skinframework ActiveX Control. 
 
I have tried your solution with the Commandbar control. I have simly added a Commandbar to the form, without further settings. This way works.
 
Is a solution without using the Commandbar also available? 
 
Best regards
---------

OS: Win 10 64 bit

Codejock Version 22.1 ActiveX

MS Visual Studio 2022 - C#

---------
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.