Book a Demo

Author Topic: Check / uncheck add-in menu option  (Read 4016 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Check / uncheck add-in menu option
« on: August 03, 2014, 10:05:09 pm »
Hello,

I would like to set my add-in menu item to be checked/unchecked as the EA built-in menu in Project -> Version Control -> Work Offline.

Is it possible to do so, using the API?


Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Check / uncheck add-in menu option
« Reply #1 on: August 04, 2014, 05:19:51 am »
Hello,

with the simple Addin I think it isn't possible.

You may develop your Addin as an ActiveX Addin.

Then you have your own window as an EA Window. You are able to make powerful Addins with a reasonable GUI.

Geerts Navigator is in example of this. Also my published Addins us this powerful technology. I think Geert has a simple example from where you can start.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Check / uncheck add-in menu option
« Reply #2 on: August 04, 2014, 09:38:39 am »
The EA_GetMenuState function provides a parameter you can set to true to mark your command as checked, but I'm not sure if you can work out when EA is in that state.

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Check / uncheck add-in menu option
« Reply #3 on: August 04, 2014, 09:30:04 pm »
Quote
The EA_GetMenuState function provides a parameter you can set to true to mark your command as checked, but I'm not sure if you can work out when EA is in that state.

Thanks for your response.
Can I override the event using the addin menu item?
How can I access it? By name?