We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Change groupBarItem appearance (Colors)???

Is there a possibility to change the colors of a groupBarItem in a groupBar, when using the VisualStyle "Office 2003"? I like the complete style, but i just want to change some of the colors! Is that possible???

5 Replies

AD Administrator Syncfusion Team April 13, 2005 10:53 AM

Hi Theo, We offer a static class, Syncfusion.Windows.Forms.Office2003Colors, that allows you to set (or reset) the colors used for our Office2003 styles. For example, if you wanted to make the highlighted GroupBarItem have a blue to purple gradient, you would use the following two lines of code: Syncfusion.Windows.Forms.Office2003Colors.GroupBarHighlightColorLight = Color.Blue; Syncfusion.Windows.Forms.Office2003Colors.GroupBarHighlightColorDark = Color.Purple; If you have any questions about how to use this class, please let me know. Regards, Gregory Ausitn Syncfusion Inc.


AD Administrator Syncfusion Team April 13, 2005 12:11 PM

Gregory: That is useful information. If you know, offhand, any posts or articles that describe that class, please let me know. Otherwise, I can look at the class reference and figure things out which is no problem. Thanks.


AD Administrator Syncfusion Team April 14, 2005 09:15 AM

@Gregory thanks a lot for the hint. I was able to change nearly every color I wanted and it looks great. Except for the color of the GroupBarItems! Following line ist for the text color... Syncfusion.Windows.Forms.Office2003Colors.GroupBarItemTextColor = Color.Black; Why isn''t there an adequate GroupBarItemColorDark and GroupBarItemColorLight for the rest of the "buttons"? How can I change those colors???


AD Administrator Syncfusion Team April 14, 2005 09:20 AM

sorry, I forgot my name in the previous post...


AD Administrator Syncfusion Team April 15, 2005 11:00 AM

Hi guys, Kevin: I''m not aware of any articles or forum posts listing what all the colors do. I''ve found that most of the colors are accurately named, so the class reference is adequate. Theo: The GroupBarItems that haven''t been selected or highlighted are drawn using MenuMarginColorDark and MenuMarginColorLight. Regards, Gregory Austin Syncfusion Inc.

Loader.
Live Chat Icon For mobile
Up arrow icon