Author Topic: EA Addin making more submenues?  (Read 3758 times)

MathiasK

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
EA Addin making more submenues?
« on: April 25, 2014, 07:23:55 pm »
Hi, i tryed to make more submenues (="menuNewWindo")- but they dont appear. The case of the menueNewWindow is never been executed.
Are there only two levls of menues and no futher menue allowed?



const string menuFirst_1 = "&First";
const string menuFirst_2 = "&First.2";

public object EA_GetMenuItems(EA.Repository Repository, string Location, string MenuName)
        {
 
            switch (MenuName)
            {
                // the brackels "" defines the top level menu option
                case "":

                    return menuHeader;
                // defines the submenu options

                case menuHeader:

                    string[] subMenus = { menuHello, menuGoodbye, menuNewWindow,"four" };
                    return subMenus;

                case menuNewWindow:

                    string[] names = { menuFirst_1, menuFirst_2};
                     return names;

            }

            return "";
        }

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA Addin making more submenues?
« Reply #1 on: April 25, 2014, 08:46:04 pm »
I don't know. I've never tried to add more then two levels of menus.

Geert

MathiasK

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: EA Addin making more submenues?
« Reply #2 on: April 25, 2014, 09:02:49 pm »
i was just testing - probably dont want more menues too
- thanks anyway for the quick response :)