• Right Click menu name (2000 – 2003)

    Author
    Topic
    #452968

    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

    Viewing 0 reply threads
    Author
    Replies
    • #1119985

      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.

      • #1119987

        (Edited by HansV to make URL clickable – see Help 19)

        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%5B/url%5D) 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!

        • #1119990

          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.

          • #1119992

            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

    Viewing 0 reply threads
    Reply To: Right Click menu name (2000 – 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: