Hi -
I have a UltraToolBars Manager with five Ribbons on it and 4- 5 tools on each one of the ribbon. I added a Shortcut key on one of the tool(ctrls) but it looks like the tool is not responding to the short cut key. On the other hand, I noticed there are built in Short cut keys for each of these tools on the ribbon. For Example. Holding Alt key will specify a single short cut symbol for each of the ribbon and then again for each tool on the ribbon.
Is this built in shortcut functionality overriding the hotkey that i added to the tool?
Thanks in advance.
I think you are referring to override built-in shortcut functionality. Set the ShowinCustomizer property to false in tools->Sharedprops, then it should work.
Hi,
I am using Infragistics ultraToolbarsManager In windows application and Ribbon option is show ribbon.When ever I am pressing on Alt (in Keyboard) the ribbon will be enabled.So my requirement is when ever press on Alt ribbob should not show tools.Plz respond.
Will this force the hotkeys on a form to fire first instead of the hotkeys in the ribbon? If a form has the same hotkeys as the ribbon and the form has focus, I would like the form's to fire instead of the ribbon.
You can use the following code in your Form to prevent the Alt key from showing key tips:
public partial class Form1 : Form, IMessageFilter{ public Form1() { Application.AddMessageFilter( this );
InitializeComponent(); }
protected override void OnFormClosed( FormClosedEventArgs e ) { Application.RemoveMessageFilter( this );
base.OnFormClosed( e ); }
bool IMessageFilter.PreFilterMessage( ref Message m ) { if ( Form.ActiveForm != this ) return false;
switch ( m.Msg ) { case WM_KEYDOWN: case WM_KEYUP: case WM_SYSKEYDOWN: case WM_SYSKEYUP: switch ( (int)m.WParam ) { case VK_MENU: return true; } break; }
return false; }
internal const int WM_KEYDOWN = 0x0100; internal const int WM_KEYUP = 0x0101; internal const int WM_SYSKEYDOWN = 0x0104; internal const int WM_SYSKEYUP = 0x0105;
internal const int VK_MENU = 0x012;}
Could you provide an example on how to implement the IMessageFilter? The documentation is quite lacking on this object.
It sounds like you want to disable the KeyTip functionality, but that is not possible when the ribbon is showing. If you want to perform some other action when the Alt key is pressed and the ribbon is visible, you can try to create a custom IMessageFilter implementation and add the message filter to the application.
which infragistics version you are using? Its working fine in V 7.3 and V 8.2