This is a migrated thread and some comments may be shown as answers.

How to add a shortcut key to a menu item

4 Answers 411 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Boris Rogge
Top achievements
Rank 1
Boris Rogge asked on 26 Apr 2007, 10:51 PM
Hi all,

what would be the best way to assign a shortcut key to a certain menu item using the MenuStrip control and the RadMenuItem class.

Thanks,

boris

4 Answers, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 27 Apr 2007, 08:24 AM
Hello Boris Rogge,

We have a KB article describing how to add shortcuts to RadMenu so you could take a look at:
http://www.telerik.com/support/KB/article/b454K-tmb-b454T-ckd-b454c-ckd.aspx

Best wishes,
Dimitar Kapitanov
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Lorenzo
Top achievements
Rank 1
answered on 24 Aug 2007, 02:58 PM
Hi. I have to build a standard menu, like the IE7 menĂ¹. I want add a shortcut on the various menu items. I can add a shortcut only if there is a click event handler associated to the item. If there isn't the event handler, like the top menu item File, the shortcut doesnt work! (when i click Alt+F nothing happen.... i want see the sub menu items, like Open, Save....)
How I can do this? And what I have to do to see the shortcut keys near menu items description? (Ex: Save     Alt+S)
Thanks!
Lorenzo
0
Jack
Telerik team
answered on 24 Aug 2007, 04:07 PM
Hi Lorenzo,

The current version of RadMenu does not support mnemonics. Instead we support keyboard shortcuts based on command bindings. This way, there is no possibility to assign shortcut to a menu item not bound with some command. This is an issue and we will fix it in one of the future versions.

Regarding to your second question, use the HintText property of RadMenuItem to specify its shortcut description.

 
Best wishes,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Lorenzo
Top achievements
Rank 1
answered on 27 Aug 2007, 08:33 AM
Hi, thank you for fast response!
I solved my problem adding an event handler for click to the top menu item File and adding inside the method the following statement:

radMenuItem_File.ShowChildItems();

Thanks!
Lorenzo

Tags
Menu
Asked by
Boris Rogge
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Lorenzo
Top achievements
Rank 1
Jack
Telerik team
Share this question
or