Book a Demo

Author Topic: EA_GetMenuState In EA 9.1  (Read 5103 times)

shaunf

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
EA_GetMenuState In EA 9.1
« on: September 14, 2011, 07:40:35 pm »
Ive noticed get menustate not being called until a menu item is clicked. I was using this as validation were options would be greyed out that cannot be clicked. This then leads to users clicking on an option and recieving no error or no warning because it returns false then doesnt perform the click method for it. Any one else noticed this behaviour

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA_GetMenuState In EA 9.1
« Reply #1 on: September 14, 2011, 09:43:25 pm »
Well,

There seems to be a difference where you right click.
If right clicked on a diagram I get correctly enabled/disabled menu options.
When right clicked on the project browser it always enables the options.
The main menu also seems to be working correctly.

So I think the problem only occurs in the project browser.

Geert

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: EA_GetMenuState In EA 9.1
« Reply #2 on: September 15, 2011, 01:07:26 am »
Yes I can concur I get exactly the same behaviour, the menu items for an add-in should enable/disable in the same irrespective of where the menu option is selected. This used to be the case.

I have used the selection of an item in the Project Browser to control add-in menus items many times, and in my latest ad-in more users are likely to be using the add-in menu by right-clicking an item in the project browser.

This inconsistency is both suprising and annoying!  >:(

Cheers

Phil
Models are great!
Correct models are even greater!

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: EA_GetMenuState In EA 9.1
« Reply #3 on: September 15, 2011, 09:04:40 am »
We are aware of this issue in build 909 and hope to fix this in a future release, but unfortunately cannot provide a timeline as yet.

Priyanga

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: EA_GetMenuState In EA 9.1
« Reply #4 on: December 20, 2011, 02:27:53 am »
Is this issue fixed now that there is EA 9.2 build 1 is out?

Cheers

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA_GetMenuState In EA 9.1
« Reply #5 on: December 20, 2011, 02:41:48 am »
I think it has been fixed, but I'm not 100% sure.
Should be easy enough to test out yourself.

Geert

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: EA_GetMenuState In EA 9.1
« Reply #6 on: December 20, 2011, 10:12:54 am »
I think it was fixed in EA 9.2 build 920.  As Geert suggested - try testing it again with the latest build of EA.  If you still encounter any problems, please contact support with the details.