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.

BarManager SelectedItemChanged Event is never emitted (2.1.0.9)

Thread ID:

Created:

Updated:

Platform:

Replies:

25150 Feb 19,2005 03:34 AM Feb 21,2005 10:07 AM Windows Forms 1
loading
Tags: Tools
Ralf Stanke
Asked On February 19, 2005 03:34 AM

Hi there ! The implementation of BarItem.OnSelected never sets the SelectedItem property if the Selected event of the BarItem is null. So, the mechanism of displaying Tooltips via the BarManager event does not work unless every BarItem has a Selected event assign to it. And, on my opinion, every BarItem should fire the selected event via the BarManager even if it is disabled. Because a disabled BarItem should display a hint as well. BarItems.cs protected virtual void OnSelected(EventArgs args) { if(this.Enabled && this.Selected != null) { if(this.Manager != null) this.Manager.SelectedItem = this; this.Selected(this, args); } } corrected version: protected virtual void OnSelected(EventArgs args) { if(this.Manager != null) this.Manager.SelectedItem = this; if(this.Enabled && this.Selected != null) { this.Selected(this, args); } }

Administrator [Syncfusion]
Replied On February 21, 2005 10:07 AM

Hi Ralf, The SelectedItemChanged event does not fire for disabled BarItems because disabled BarItems cannot be selected. If you mouse over a disabled menu item in VS .NET, IE, etc. you''ll notice that the item is not selected. XPMenus does support tooltips for disabled BarItems. Do you have a reason to not use the built-in tooltips? Regards, Gregory Austin Syncfusion Inc.

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.

;