Book a Demo

Author Topic: using icons and menu separators on add-in  (Read 4609 times)

domi55

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
using icons and menu separators on add-in
« 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?


g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: using icons and menu separators on add-in
« Reply #1 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
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

domi55

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: using icons and menu separators on add-in
« Reply #2 on: April 26, 2012, 04:55:38 am »
alright! thanks g.makulik!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: using icons and menu separators on add-in
« Reply #3 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.

domi55

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: using icons and menu separators on add-in
« Reply #4 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!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: using icons and menu separators on add-in
« Reply #5 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