Menu Bar Color |
Post Reply |
Author | |
iamgtd
Senior Member Joined: 25 February 2009 Status: Offline Points: 131 |
Post Options
Thanks(0)
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
|
|
Hemesh
Senior Member Joined: 10 August 2010 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
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 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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
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.... |
|
iamgtd
Senior Member Joined: 25 February 2009 Status: Offline Points: 131 |
Post Options
Thanks(0)
|
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# --------- |
|
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 |