Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Nov 2002
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Right Click menu name (2000 - 2003)

    We have a right click menu event and based on where the cursor is located at the moment of the right click a different default meu appears. We want to add our custom menu items to the end of the default right menu that comes up but need to know the name of the default menu coming up so as to attach ot it. There is a selection object in the function handling right click event but none of the methods there bring back the menu name or ID. Is there a way to get that menu name of ID so as to attach to it and add our menus? Thank you

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Right Click menu name (2000 - 2003)

    Word has lots of shortcut menus.
    - Select Tools | Customize...
    - Activate the Toolbars tab.
    - Tick "Shortcut Menus".
    - This will display a toolbar with three dropdown menus: Text, Table and Drawing.
    - The items in each of these dropdown menus are the names of the various shortcut menus.
    - The items of the shortcut menus are shown as submenus.
    The "default" shortcut menu is named Text.

  3. #3
    New Lounger
    Join Date
    Aug 2008
    Location
    Fort Worth, Texas, USA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Right Click menu name (2000 - 2003)

    (Edited by HansV to make URL clickable - see <!help=19>Help 19<!/help>)

    Jim and I are working together on this. What we mean is that we want to determine, programattically on WindowBeforeRightClick what the default context menu name is. For example, when they are in a table, the context menu name will be "Table Lists". There are many, many contect menus (see http://support.microsoft.com/kb/107224) and it is one of these names that I want to know so I can ID whether to attach another menu item to it. Thanks!

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Right Click menu name (2000 - 2003)

    Welcome to Woody's Lounge!

    As far as I know, there is no built-in way to determine which shortcut menu will be activated; you'd have to find out by inspecting the properties of the current selection using Selection.Information. but I suspect it won't be easy, if it is possible at all, to cover all situations.

  5. #5
    New Lounger
    Join Date
    Aug 2008
    Location
    Fort Worth, Texas, USA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Right Click menu name (2000 - 2003)

    That is the conclusion I am coming to. It's a bit like driving blind, not knowing what the user is handing you when you get a menu. Silly actually. Maybe I will escalate this to Microsoft directly. If there is no answer I will have to cover ALL menus to so that one that is right-clicked shows my menu item attached, and that doesn't seem right. This is pretty common. I would think Microsoft has an answer somewhere.

    Regards, Don

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •