Menu item shortcuts

12 posts, 1 answers
  1. han
    han avatar
    1 posts
    Member since:
    Jul 2008

    Posted 04 Jul 2008 Link to this post

     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 ...
  2. Answer
    Jack
    Admin
    Jack avatar
    2335 posts

    Posted 07 Jul 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Mark Griebling
    Mark  Griebling avatar
    129 posts
    Member since:
    Dec 2005

    Posted 24 Sep 2008 Link to this post

    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
  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 25 Sep 2008 Link to this post

    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.
  6. David Simmonds
    David Simmonds avatar
    56 posts
    Member since:
    Mar 2010

    Posted 05 May 2011 Link to this post

    I am using 2011.1. CommandBindings is a property available from code but it does not show in the property grid. Why not?
  7. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 10 May 2011 Link to this post

    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.
  8. Eric
    Eric avatar
    24 posts
    Member since:
    Jul 2011

    Posted 16 Sep 2011 Link to this post

    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
  9. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 22 Sep 2011 Link to this post

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

  10. Sabesan
    Sabesan avatar
    1 posts
    Member since:
    Jan 2012

    Posted 07 Aug 2012 Link to this post

    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?
  11. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 09 Aug 2012 Link to this post

    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 >>
  12. GiWorking
    GiWorking avatar
    3 posts
    Member since:
    Dec 2011
  13. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 14 Dec 2012 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready