Print Page | Close Window

Menu Bar Color

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=17264
Printed Date: 26 April 2024 at 1:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Menu Bar Color
Posted By: iamgtd
Subject: Menu Bar Color
Date 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



Replies:
Posted By: Hemesh
Date 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


Posted By: Aaron
Date 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....


Posted By: Aaron
Date 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....


Posted By: iamgtd
Date 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#

---------



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