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

Menu item shortcuts

11 Answers 266 Views
Menu
This is a migrated thread and some comments may be shown as answers.
han
Top achievements
Rank 1
han asked on 04 Jul 2008, 09:16 PM
 Hi. I hope, i can explain my problem with Radmenu. When i was add an item with "&" (Accelerator) for character shortcut, underline is everytime showing. For example; When i typed to menu item "&File" it's showing "File" but i wanna see that only, if i press to "Alt" key from keyboard. Other times i wanna see like normal "File"...

 And then, how can i add function keys for shortcut? I mean i wanna use "F1","F5", etc ...

 Is there anyway to do this ? Thanks for help ...

11 Answers, 1 is accepted

Sort by
0
Accepted
Jack
Telerik team
answered on 07 Jul 2008, 08:26 AM
Hello Han,

Thank you for your questions.

Currently RadMenu doesn't support this feature. We will consider implementing it in a future version.

You should add a new CommandBinding to your menu item and associate the ActionCommand with this binding. This can be done at design-time, through the properties panel and the CommandBinding property of the menu item. Additionally you can set a hint text through the HintText property.

You may also find the following topic helpful: http://www.telerik.com/help/winforms/architecture_handlinguserinputcommandbindings.html

Please let me know if you need further assistance.

All the best,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mark Griebling
Top achievements
Rank 1
answered on 24 Sep 2008, 11:19 PM
I believe the current standard is not to show the Underline until the Alt key is pressed.  Has any progress been made on changing the behavior?

Thanks,
Mark
0
Jack
Telerik team
answered on 25 Sep 2008, 01:49 PM
Hi Mark,

Thank you for contacting us.

You are correct, this is the modern behavior for underlining the hot keys used in Windows Vista. Currently RadMenu supports only the classic behavior, when the underlining is always visible.

We have plans to support the new behavior, however I can't give you exact time line when it will be implemented. We will be happy to raise the priority of this feature if we see more interest in it.

Do not hesitate to contact me if you have other questions.

Thank you
All the best,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
David Simmonds
Top achievements
Rank 1
answered on 05 May 2011, 10:06 PM
I am using 2011.1. CommandBindings is a property available from code but it does not show in the property grid. Why not?
0
Stefan
Telerik team
answered on 10 May 2011, 04:36 PM
Hi David,

Thank you for writing.

CommandBindings is an obsolete implementation of our shortcuts mechanism since we introduced RadShortcut. Please refer to this help section, which demonstrates how to take advantage of the new functionality.

Should you have any other questions, do not hesitate to contact us.
 
Regards,
Stefan
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
0
Eric
Top achievements
Rank 1
answered on 16 Sep 2011, 09:58 PM
For anybody having problems getting the F keys to work (F5, etc) please note you have to specify a 0 with your desired F-key as follows:

menuSave.Shortcuts.Add(New RadShortcut(0, Keys.F12))


This bug report tipped me off:
http://www.telerik.com/support/pits.aspx#/public/winforms/2592
0
Stefan
Telerik team
answered on 22 Sep 2011, 08:28 AM
Hi Eric,

Thank you for writing.

I just want to mention that 0 in this scenario equals Keys.None. So you can also use:
menuSave.Shortcuts.Add(New RadShortcut(Keys.None, Keys.F12))

In regards to the PITS issue, I have modified its text to make it more understandable.
 
Regards,
Stefan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Sabesan
Top achievements
Rank 1
answered on 07 Aug 2012, 08:35 AM
RadMenu Shortcuts are triggered even if a Menu Item is disabled.

Say for example I have a menu item "mnuLogout" and its initial status is disabled, When the menu item "mnuLogout" is clicked it should perform some logout operation. I've assigned a shortcut "Ctrl + O" for "mnuLogout"

When I press the key "Ctr + O" it triggers the action command for "mnuLogout" even when the item is disabled.

How to prevent this operation?
0
Stefan
Telerik team
answered on 09 Aug 2012, 01:24 PM
Hello Sabesan,

Thank you for writing.

Indeed, I can confirm that this issue appears with RadMenuItem too. I am logging it in PITS and we will address it accordingly. Here you can get notified when the fix is released:  http://www.telerik.com/support/pits.aspx#/public/winforms/12236.

Meanwhile, you can add a check if the item is enabled in your click event.

Your Telerik Points have been updated for this report.
 
Regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
GiWorking
Top achievements
Rank 1
answered on 11 Dec 2012, 04:45 PM
0
Jack
Telerik team
answered on 14 Dec 2012, 12:40 PM
Hi,

Like Stefan said in a previous post, command bindings are obsolete and you should use keyboard shortcuts instead. The described article is no longer available. Please consider the shortcuts overview page in our online documentation for a general description of shortcuts and this help article which describes in detail how to associate a shortcut with RadMenu items.

If you have further questions, we will be glad to help.
 
Greetings,
Jack
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
Menu
Asked by
han
Top achievements
Rank 1
Answers by
Jack
Telerik team
Mark Griebling
Top achievements
Rank 1
David Simmonds
Top achievements
Rank 1
Stefan
Telerik team
Eric
Top achievements
Rank 1
Sabesan
Top achievements
Rank 1
GiWorking
Top achievements
Rank 1
Share this question
or