Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Shortcuts Keys for UltraToolbarsManager
posted

Hi all,

I am trying to add key board shortcuts for  Infragistics ButtonTools:

 

private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager toolbarsManager;

Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool1;

Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool2;

Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenuTool1;

Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool3;

Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool4;

 

buttonTool1.SharedProps.Caption = "abc";

buttonTool1.SharedProps.Shortcut = System.Windows.Forms.Shortcut.AltF1;

buttonTool2.SharedProps.Caption = "def";

buttonTool2.SharedProps.Shortcut = System.Windows.Forms.Shortcut.AltF2;

popupMenuTool1.SharedProps.Caption = "ghi";

 

popupMenuTool1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {

buttonTool3,

buttonTool4});

 

this.toolbarsManager.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {

buttonTool1,

buttonTool2,

popupMenuTool1});

 

this.toolbarsManager.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.toolbarsManager_ToolClick);

 

The result of this code is that event is not fired with keyboard shortcut but mouse click fires the correct event. Any thoughts/suggestions would be helpful.