I don't see a group for the ultraButton control, but basicly we would like to know if it is possible to associate a shortcut key to, say, a button. For example, if there is a "Save" button on a panel, pressing <F8> should trigger the buttons click event. We have a request for quite a few of these, such as <F1>:Help, <F2>:New/Add, <F3>:Exit, etc.
Is this doable?
(Also, does anyone know where the ultraButton forum is?)
I'm also toying with the possibility of recursively iterating through all of the controls from a base class that will stuff a reference to Tagged controls into global variables. For example, a "Save" button would be tagged with <F8>. High in the message pipe, I would use IMessageFilter to filter for these tags and check to see if any are in global variables... and fire the associated control if it exists in a particular panel.
I don't know if this will work, but most of the pieces are already part of the app... such as IMessageFilter we are using for other purposes, the base panel, and the global variables class.
This would mean we code this once and them merely go through the app and tag controls as required.
There's nothing built-in to UltraButton to have shortcut keys like this. You could use a Mnemonic, of course, just like with a regular button, by putting an ampersand (&) into the button's text.
If you want shortcuts, there are a couple of ways you could do it.
1) Use a toolbars. You could use an UltraToolbarsManager and place buttons on it that do the same thing as your UltraButtons. The ToolbarsManager buttons have shortcut functionality built in. So you could use them in place of or in addition to the regular buttons.
2) Set the form's KeyPreview property to true. Then you can handle the Key events of the form and trap for the keys you want.
I could be wrong, but it seems like you would need to capture key press events to do what you are trying to accomplish. The "ultrabutton forum" is under WinForms -> UX Enhancers -> WinExtras.