Author Topic: Context Item Events - Right-Click?  (Read 9714 times)

ejafman

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Context Item Events - Right-Click?
« on: November 23, 2021, 12:30:22 am »
Hi all,

Just starting to read up on add-ins concepts; receptors, events, etc. etc.

There seems to be a "EA_OnContextItemDoubleClicked"...awesome. But can't seem to find an equivalent that would be called (hopefully):
"EA_OnContextItemRightClicked"

No such beast?

TIA...Eric

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13284
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Context Item Events - Right-Click?
« Reply #1 on: November 23, 2021, 12:39:39 am »
No, but you can use EA_GetMenuItems to add your menu items to the context menu.
They will appear under Specialize | YourAddinName | ...

There's also EA_GetMenuState to enable/disable your menu options, and of course EA_MenuClick to react to a menu option clicked by the user.

Geert

ejafman

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Context Item Events - Right-Click?
« Reply #2 on: November 23, 2021, 12:48:31 am »
ty...so the only way is through Right click->Specialize->"Custom whatever I want"

Not Right Click->"Custom whatever I want"

Saw that, was just wondering why "specialize" necessary. Shouldn't be a problem, though, as long as I document it ;)

E

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13284
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Context Item Events - Right-Click?
« Reply #3 on: November 23, 2021, 01:01:05 am »
ty...so the only way is through Right click->Specialize->"Custom whatever I want"

Yes. I guess Sparx wants to make a clear distinction between standard features and add-in functionality.

Geert

ejafman

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Context Item Events - Right-Click?
« Reply #4 on: November 23, 2021, 02:35:52 am »
ty