Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM
  New Posts New Posts RSS Feed - change backcolor of commandbar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Lockedchange backcolor of commandbar?

 Post Reply Post Reply
Author
Message
garyhenson View Drop Down
Groupie
Groupie
Avatar

Joined: 26 September 2008
Location: Frisco, Texas
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote garyhenson Quote  Post ReplyReply Direct Link To This Post Topic: change backcolor of commandbar?
    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
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: 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....
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.141 seconds.