Controling the Highlight color of BarItems

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?



1 Reply

VS Vallarasu S Syncfusion Team October 13, 2010 07:29 PM UTC

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.



Loader.
Up arrow icon