Hi, I'm using the UltraToolbarManager (NetAdvantage 2008 vol. 2, .NET 2.0) to allow shortcut key configuration, but the list of keys you can assign only seems to include the F-keys, or ctrl/alt and the number and letter keys (as well as insert and delete).
I believe this is because these are all the shortcuts that windows forms provides by default, but there are some pretty commonly used shortcut keys missed out, mainly the symbol keys, -, +, [, ], <, > etc.
Does anyone know of a way to add these keys to the configurable key list in Infragistics UltraToolbarManager?
LCIGmbH,
After discussing this with one of our developers, it looks like there is a way to add your own custom shortcut keys. To do this, you need to cast the keys to a Shortcut and then set it to the Tool's SharedProps.Shortcut property. If you want a combination of keys, you will need to combine them using an "or" before casting to a Shortcut:
tool.SharedProps.Shortcut = (Shortcut)( Keys.Control | Keys.Down );
~Kim~
Hi,
Neither the shortcut option given in default nor the option given above works for me..
i am using the toolbar in a MDI Form. Should i need to specify any other property to make this work..
Kindly guide me..
Waiting for your valuable reply.
I had no trouble implementing this in my MDI application. (VB)
To assign CTRL+ and Ctrl- as shortcut keys on the menus...
Tool.SharedProps.Shortcut = DirectCast(Keys.Control Or Keys.Add, Shortcut) Tool.SharedProps.Shortcut = DirectCast(Keys.Control Or Keys.Subtract, Shortcut)
This works but it displays 'Zoom In Ctrl+Add' 'Zoom Out Ctrl+Subtract'Rather than 'Zoom In Ctrl +' 'Zoom Out Ctrl -'(Even worse if you use the main keyboard keys - see below)
This applies ONLY to the +/- sign on the numeric keypadTo apply (ONLY) to the +/- sign on the main part of the keyboard you would use:
Tool.SharedProps.Shortcut = DirectCast(Keys.Control Or Keys.OemPlus, Shortcut) Tool.SharedProps.Shortcut = DirectCast(Keys.Control Or Keys.OemMinus, Shortcut)
The standard Microsoft menus have a 'ShortcutKeyDisplayString' property that would allow us to specify the exact string we want to appear. (After setting the ShowShortcutKeys property to true)
Is there any way to effectively do that with UltraToolbarsMgr?(Maybe set the caption as 'Zoom In{tab}Ctrl +' and somehow tell it NOT to display the shortcut for that particular key.)
Ideally I would like the shortcut to apply to both '+/-' keys on the keyboard but I guess there is no way to do that using Shortcut keys.(I would have to handle the Keydown or Keyup event instead - in each of my child windows. [My app is MDI with 3 different types of child window])
Hope this helps.
Anyone got an answer for my 'extended' question?
Mike