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
1170
Associating a shortcut key to an Infragistics control?
posted

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?)

Parents
  • 469350
    Suggested Answer
    Offline posted

    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.

Reply Children
No Data