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 03:53 PM UTC

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 05:11 PM UTC

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 02:15 PM UTC

@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 02:20 PM UTC

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

AD Administrator Syncfusion Team April 15, 2005 04:00 PM UTC

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.

Live Chat Icon For mobile
Up arrow icon