如何确定contextItemDoubleClick事件从何处触发 [英] How to identify from where the contextItemDoubleClick event triggers

查看:64
本文介绍了如何确定contextItemDoubleClick事件从何处触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想确定企业架构师中触发 ContextItemDoubleClick 事件的位置。 (例如)如果我在EA中双击项目浏览器,则需要确定它是从项目浏览器触发的,因为现在 ContextItemDoubleClick 会在用户在EA中双击时触发。

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 ?

推荐答案

不,您不能确定它是从项目浏览器还是打开的图或图对象触发的。至少不是来自EA:

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


当用户在上下文中双击(或按下Enter键)该项目时,将发生此事件,无论是在图表中,在项目浏览器中还是在自定义部分中。可以处理事件的加载项可以订阅此广播功能。

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.

这篇关于如何确定contextItemDoubleClick事件从何处触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆