Print Page | Close Window

change backcolor of commandbar?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: ActiveX COM
Forum Description: Topics related to Codejock ActiveX COM products
URL: http://forum.codejock.com/forum_posts.asp?TID=16520
Printed Date: 21 November 2024 at 2:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: change backcolor of commandbar?
Posted By: garyhenson
Subject: change backcolor of commandbar?
Date Posted: 25 March 2010 at 6:27pm
ActiveX v13.0.
 
I need to set the backcolor of the client area of a commandbar. I have a task panel with some VB6 controls (sorry I have to do it this way for now ;-)
 
In XP the backcolors and the controls were fine (all 'brown'). But now I need to run in Win 7 as well and the backcolors are different in Win 7.  I'm using
 
cbMain.GlobalSettings.ColorManager.Color(STDCOLOR_GRADIENTACTIVECAPTION) to get the backcolor I want. I can modify the TaskPanel backcolor using
 
tp.ColorSet.NormalGroupClient = my color.
 
But I cannot see where to set the CB backcolor. The TaskPanel does not 'cover' all of the client area and I do not want it to. I want the TP backcolor and the CB backcolor to match.
 
Help?
 
ok, maybe it's SetSpecialColor??? Like 'Me.cbMain.SetSpecialColor STDCOLOR_WINDOW, vbRed'??
I'm trying to find the right const to use to set the client area to a color so that it looks the same in XP, Win7 classic, WIn7 themes, etc.
Does anyone know which XTPColorManagerColor value I use???
Thanks!


-------------
Software Developer
Product: Xtreme SuitePro (ActiveX) version 13.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0



Replies:
Posted By: Aaron
Date Posted: 28 March 2010 at 5:45am
Hi,
 
STDCOLOR_BTNFACE will change color of all backgrounds of Commandbars but also many other control which uses BTNFACE for their colors. But there is a sample which you can use to test what is changed after you set another color:
 
C:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v.....\Samples\CommandBars\VB\MDISample
 
 


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



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