Submenus in ContextMenu

Hi!

I am a complete newbie in .NET C# and SDL Trados APIs, so sorry for my ignorance in advance. :)

I was able to add a new menu item into context menu in Studio editor for calling my own Action. Since I want to maintain some user-specific (plugin) settings, I created a form to save some connection information into Settings.Default.... Now I want to be able to open the settings form anytime and the best place (for me) seems to be from a submenu of my plugin in ContextMenu.

So, please, could you tell me how to add such a subitem into the context menu or where is a better place to put a button to open the settings form?

 

And be prepared, other questions will follow soon. :)

And thanks for the great opportunity to write plugins for SDL Trados with the APIs!

Parents Reply
  • Hi Jesse,
    I already added a new item into the context menu. But I want to add other items to context menu and merge them into a group to create a submenu in the context menu. So instead

    ...
    Reject change
    Add bookmark
    Menu item 1
    Menu item 2
    Menu item 3
    ...

    I want to have

    ...
    Reject change
    Add bookmark
    My plugin > Menu item 1
                    Menu item 2
                    Menu item 3

    And possibly be able to add even subsubitems etc. Could you tell me how to do that?

    Thanks a lot!

Children