Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: domi55 on April 26, 2012, 04:33:35 am

Title: using icons and menu separators on add-in
Post by: domi55 on April 26, 2012, 04:33:35 am
Is it somehow possible to use icons and menu separators like in the following example within my add-in?

(http://dl.dropbox.com/u/11717748/ea_menu.png)
Title: Re: using icons and menu separators on add-in
Post by: g.makulik on April 26, 2012, 04:44:02 am
Hi,

I'm afraid that's not possible. AFAIK you can only manipulate your own menu entries using the EA_GetMenuItems() and EA_GetMenuState() callback methods. These don't support icon output parameters at all.
You might try to provide a separator returning an empty string with the EA_GetMenuItems() mehod.

HTH
Günther
Title: Re: using icons and menu separators on add-in
Post by: domi55 on April 26, 2012, 04:55:38 am
alright! thanks g.makulik!
Title: Re: using icons and menu separators on add-in
Post by: qwerty on April 26, 2012, 05:07:20 am
You can add separators. IIRC you need to send a '-' as entry. Just see the help.

q.
Title: Re: using icons and menu separators on add-in
Post by: domi55 on April 26, 2012, 05:29:33 am
Quote
You can add separators. IIRC you need to send a '-' as entry. Just see the help.

q.

great! thanks very much!
Title: Re: using icons and menu separators on add-in
Post by: Geert Bellekens on April 26, 2012, 03:07:21 pm
And I've learned recently that you can also use checkbox thingies as well by setting IsChecked = true in the GetMenuState

Geert