none
Right Click menu of Word RRS feed

  • Question

  • Is it possible to change(e.g. add new entries after past entry) the right click menu of MS word?

    is yes than how can i do it using VSTO?

    Monday, April 16, 2007 9:50 AM

Answers

  • Here's a page in the VSTO part of MSDN that describes how to create your own popup menu for Word

     

    http://msdn2.microsoft.com/en-us/library/47cs5caa(VS.80).aspx

     

    This should give you the basics of working with popup menus.

     

    In order to add commands to an existing popup, you first need to determine to which popup menu (Commandbar) they should be added. In the Word 2003 UI go to Tools/Customize/Toolbars. Activate the "Shortcut menus" entry in the list. This will display a toolbar with three categories; these lists contain all predefined context menus. There are a lot of them, as Word recognizes many kinds of context. The caption of each list item is also the index value you can use to address the commandbar, for example: .CommandBars("Text")

     

    You can also generate this list by looping the CommandBars collection to get all the names of Commandbars of the type msoBarTypePopup.

    Tuesday, April 17, 2007 7:57 AM
    Moderator