1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adding Shortcut To A .net-menu-item

Discussion in 'Development' started by Wolfgang Schölmberger, Mar 20, 2017.

  1. Hi everybody,

    i can add eg. "F8" as a shortcut to a .net-menu-item with this command:

    oMenuItem:ShortcutKeys = System.Windows.Forms.Keys:F8.

    but I have no clue how to add a "combined" shortcut like "CTRL-F". I guess I have to combine "Keys:Control" and "Keys:F" somehow, but I don't kno how.

    any help appreciated
     
  2.  
  3. Osborne

    Osborne Active Member

    This should work:
    Code (progress):
    1. oMenuItem:ShortcutKeys = CAST(Progress.Util.EnumHelper:Or(System.Windows.Forms.Keys:Control,
    2.                                                           System.Windows.Forms.Keys:F),
    3.                               System.Windows.Forms.Keys).
     
    Marco Mendoza likes this.

Share This Page