Book a Demo

Author Topic: Add an item to Toolbar  (Read 4914 times)

deepakgoel

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Add an item to Toolbar
« on: August 26, 2007, 09:03:50 pm »
Hello Sparxians,

I have an add-in that adds a context menu. I would like to add the menu commands to the toolbar so that the user can execute my add-in's functionality more easily. Is it possible to do so?

My addin provides a custom profile through MDG.

Thanks,
Deepak

Jeff Odell

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Add an item to Toolbar
« Reply #1 on: August 28, 2007, 04:47:57 am »
I would put in a support request for such a feature.  I asked about this via support a while ago and was told it was not possible with the API at that time.  You could check and, if it still isn't possible (I'm guessing it isn't), please add you voice by asking for it as an enhancement request.

In general I don't like the fact my users always have to go through the AddIn menu tree to get to my functions.  I did work around that a bit by having a couple of my AddIns create windows that stay open on top of the EA window - sort of like the Attributes dialog does.  The window floats- it isn't integrated into the Toolbar - but at least my users don't have to go through the AddIn menu multiple times to get something done repetitively.

HTH - jlo

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Add an item to Toolbar
« Reply #2 on: August 28, 2007, 05:43:57 am »
Deepak, Jeff,

I'd also support this. The add-in interface (versus simply the API for 'external' automation) is quite weak in this area. Being able to interact with the main menu would greatly improve many add-ins.

This could also lead to more commercial add-ins - whether open source or for profit - which could streanghten the overall market position of EA.

David
No, you can't have it!

Jeff Odell

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Add an item to Toolbar
« Reply #3 on: August 28, 2007, 06:31:35 am »
It is a little mistifying as they did a half decent job of letting you work with the output pane.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Add an item to Toolbar
« Reply #4 on: August 28, 2007, 07:18:50 am »
In Sparx' defence, menu systems can be difficult to handle, particularly with early COM applications. The rest of the screen is much easier to integrate.
No, you can't have it!

deepakgoel

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Add an item to Toolbar
« Reply #5 on: August 28, 2007, 08:11:26 am »
Thanks everybody for their response.

From the posts, it seems that there's some confusion around menu items (my post was about toolbar). If you're already aware of the fact that EA does allow menu items to be added to the main menu bar, please ignore this.

The same mechanism used for context menu is used to populate items in the main menu bar (the click location is MainMenuBar).