How to identify from where the contextItemDoubleClick event triggers

血红的双手。 提交于 2019-12-08 04:57:05

问题


I want to identify from where the ContextItemDoubleClick event is triggering in enterprise architect . (For eg) if i double click on a project browser in EA i need to identify it was triggered from project browser , because now ContextItemDoubleClick is triggering whenever user doubleclicks inside EA . Is it possible to identify that it triggers from project browser or open diagram or diagram object ?


回答1:


No, you can't. At least not from EA:

This event occurs when a user has double-clicked (or pressed the Enter key) on the item in context, either in a diagram, in the Project Browser or in a custom compartment. Add-Ins to handle events can subscribe to this broadcast function.

You won't likely analyze the current screen contents and make a guess where the mouse cursor is positioned, will you?

Ask yourself (or tell us) why you want to do that to find some alternative solution for your underlying issue.



来源:https://stackoverflow.com/questions/44253984/how-to-identify-from-where-the-contextitemdoubleclick-event-triggers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!