![]() |
SOLVED Backgroundcolor (Commandbar frame) |
Post Reply ![]() |
Author | |
adix ![]() Newbie ![]() Joined: 18 August 2008 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 18 August 2008 at 7:08am |
currently i'm searching for the ability to modify colors of a present theme .. and have props. so i ask the community.
i try to define the backgroundcolor of the bar and window background of a Commandbar frame. i've tested:
Step 1) add blank commandbar frame
Step 2) add by code some sample Buttons Step 3) set the theme (.VisualTheme = xtpThemeVisualStudio2008) Step 4) try to modify the colors with .SetSpecialColor (x,color) x = XPCOLOR_TOOLBAR_FACE or STDCOLOR_BACKGROUND .. i tried several values from the enum XTPColorManagerColor color = RGB - Value .. i tried also a Hex and long Value Step 5) .RecalcLayout in order to refresh the bar .. nothing works. Can you please tell me how to modify the backgroundcolor (optional how to create a custom gradient [white to vbButtonface]) ? Thanks in advance |
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Try this:
It will paint menu (1) and toolbars(2) red
If the style is a gradient style, like xtpThemeVisualStudio2008, it will be gradient.
If your issue is solved, please add SOLVED in your Topic description and have a look at post http://forum.codejock.com/forum_posts.asp?TID=11225
|
|
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.... |
|
![]() |
|
adix ![]() Newbie ![]() Joined: 18 August 2008 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Hi Aaron, thanx for your quick answer i'v tested your solution .. but it's still not working 100% properly. with .SetSpecialColor STDCOLOR_BTNFACE its possble to define the Background Color of a band if as far i switch the theme to xtpThemeNativeWinXP, xtpThemeOffice2003, xtpThemeOffice2007, xtpThemeRibbon, xtpThemeVisualStudio2008 or xtpThemeWhidbey is not working anymore. SetSpecialColor XPCOLOR_TOOLBAR_FACE does not change any color (i've tested all possible theme combinations) This occure with the "CommandBarsFrame" Control and the commandbar control. I was also not able to create a gradient. can you please be so kind and post a quick sample for a gradient ?.
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi,
If you set a different visual style some settings will be destroyed.
So first set a visual style and after this set the color like this:
CommandBars.VisualTheme = xtpThemeVisualStudio2008
CommandBars.SetSpecialColor STDCOLOR_BTNFACE, vb3DLight
CommandBars.SetSpecialColor XPCOLOR_TOOLBAR_FACE, vb3DLight If you would change a visual style you have to set colors again.
|
|
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 |
![]() ![]() ![]() ![]() ![]() |
Hi,
And you're probably right... I tested this with SkinFrameWork activated, as I turned off skinning the menu wasn't painted red anymore
![]() |
|
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.... |
|
![]() |
|
adix ![]() Newbie ![]() Joined: 18 August 2008 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Aaron, meanwhile i've found much more "features". I dont plan to buy the whole suit - even the combobox control is very cool ;) thanks for your qualified answers |
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi,
It's a pity you don't plan to buy the control. For a few dollars more you would get a very nice set of controls (if you would buy the whole suite). I don't regret buying the entire suite, if I look at my previous app and now... totally new look
![]() Regards
a satisfied member
![]() |
|
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.... |
|
![]() |
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 |