简体   繁体   中英

Adding user defined menu to Enterprise Architect element

I am working on Enterprise Architect c# add-ins and I need to display a user-defined context Menu when any element is right-clicked in diagram workspace or Project Browser instead of the default Menu.

There are context Item events available for contextItemClicked,contextItemDoubleClicked etc. Is there any add-in event available for the right-click of an element.

Kindly Help. Thanks in advance.

我猜EA_OnContextItemChanged可以解决问题。

EA_GetmenuItems具有一些参数,可根据所选元素来控制上下文菜单,并且您仍然可以Repository.GetContextObject()Repository.GetContextItemType()进行进一步细化。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM