作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 Eclipse RCP 应用程序,它使用类似于 Eclipse IDE 中的外壳来制作功能性弹出框。
目前我正在让它们在鼠标离开它们时消失,但事实证明这对我们的用户来说很难管理。
我想复制 Eclipse IDE 弹出窗口的行为,只有当用户与系统的任何部分交互时,弹出窗 Eloquent 会消失。例如单击 Windows 任务栏。
我只是想不通 shell 如何知道用户正在 Windows 中做某事,以使框消失。
所有帮助将不胜感激。
最佳答案
在 Shell
上监听 SWT.Deactivate
和 SWT.Close
,以便在用户离开或关闭它时得到通知。
关于java - eclipse RCP/SWT : How do you detect mouse events that happen elsewhere on the system,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20564180/
我是一名优秀的程序员,十分优秀!