Book a Demo

Author Topic: Creating multiple main menu items for one add-in  (Read 4219 times)

ron10023

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Creating multiple main menu items for one add-in
« on: March 03, 2008, 11:56:11 pm »
Hi everyone,

I'm using the api and my question is this:

Is it possible to create more than one main menu items for a single add-in? and if yes, how can i do it ?

Thanks

Ron

Ondrej Kolenaty

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Creating multiple main menu items for one add-
« Reply #1 on: March 04, 2008, 08:44:10 pm »
It seem that only one main menu is allowed. Try to make more add-ins.

ron10023

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Creating multiple main menu items for one add-
« Reply #2 on: March 04, 2008, 09:33:41 pm »
I'm trying to create some kind of framework add-in that will handle the all the "real" add-ins.

It works fine except for the menu part.

Is there a way to overcome this?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Creating multiple main menu items for one add-
« Reply #3 on: March 04, 2008, 10:48:04 pm »
AFAIK you're stuck, at least for now.

I know it is not what you want, but perhaps you could have your add-in set up an Add-In Manager menu pad. Then you could create a sub-menu off that pad for each of the add-ins you handle. At least that would have the same general flavor of what you describe.

Of course you'd have to work out some means of picking up menu structure from each of the 'managed' add-ins. You would also have to post events to them somehow.

HTH, David
No, you can't have it!

ron10023

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Creating multiple main menu items for one add-
« Reply #4 on: March 04, 2008, 11:09:08 pm »
My add-in already handle the menu structure for each of the add-ins and it also post various events to the add-ins.

If i understand you correctly, you suggest that my add-in will have a main menu item of its own under which I'll create sub menus for each add-in.
In this case, won't i have a problem creating sub-sub menus?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Creating multiple main menu items for one add-
« Reply #5 on: March 05, 2008, 12:55:02 am »
That's sort of what I was thinking - only as a workaround if you cannot create multiple main menus of course. As I said, you'd have to intercede in menu creation and events to wire up your managed add-ins. My guess is that if you could do that at all you could do it for multi-level menus.

David
No, you can't have it!