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.
Unfortunately, activation email could not send to your email. Please try again.

Controling the Highlight color of BarItems

Thread ID:

Created:

Updated:

Platform:

Replies:

96809 Oct 7,2010 08:16 AM Oct 13,2010 03:29 PM Windows Forms 1
loading
Tags: Tools
Shay
Asked On October 7, 2010 08:16 AM

I want to chaneg the color of the highlight box of BarItem instances in XPMenu.Bar bars (statusbar, menubar, toolbar) when the mouse is hovering over them.

(when changing BarItemSelectFlashColor, only a section of the highlight rectangle changed its color).
Is there any way to chaneg the appearance of the highlighting without overriding OnPaint?



Vallarasu S [Syncfusion]
Replied On October 13, 2010 03:29 PM

Hi Shay,

Thanks for your interest in Syncfusion products.

You can change the MenuColors with the Static properties in the MenuColors class as follows,

MenuColors.SelColor = Color.FromArgb(179, 71, 59);
MenuColors.SelTextColor = Color.White;
MenuColors.SelBorderColor = Color.FromArgb(183, 214, 242);
MenuColors.MenuBGColor = Color.White;
MenuColors.MenuLeftStripColor = Color.White;
MenuColors.DropDownBorderColor = Color.FromArgb(166, 205, 226);
MenuColors.PressedSelColor = Color.FromArgb(166, 201, 232);
MenuColors.CheckedSelColor = Color.FromArgb(215, 236, 255);
MenuColors.FloatingCommandBarCaptionColor = Color.FromArgb(183, 214, 242);


Refer to the documentation at the following link

MenuColors

Office2003Colors

Office2007Colors

We have a sample shipped with the Essential Studio at the following location

Essential Studio Samples >> Tools Samples >> Menus Package >> Custom Colors.

{Samples Installation Path}Syncfusion\EssentialStudio\Version Number\Windows\Tools.Windows\Samples\2.0\Menus Package\CustomColors

Refer the documentation and the sample and let us know if you need further assistance.

Regards
Vallarasu S.



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;