简体   繁体   English

如何获得SWT Shell的Z订购Windows事件?

[英]How to get Z ordering windows event for SWT Shell?

I have one RCP based application which creates SWT shell and windows to show some real time information. 我有一个基于RCP的应用程序,该应用程序创建SWT shell和窗口以显示一些实时信息。 When we use that application in XenDesktop Citrix Mode, I don't get to know if my SWT shell is covered by some other application launched on that XenDesktop like notepad. 当我们在XenDesktop Citrix模式下使用该应用程序时,我不知道我的SWT shell是否被在XenDesktop上启动的其他应用程序(如记事本)覆盖。 I want to get some events when some other application is obscuring my SWT windows and when that application is completely moved out of my SWT window basically Z ordering events for windows. 当其他应用程序使我的SWT窗口模糊并且该应用程序完全移出我的SWT窗口时,我想获取一些事件,基本上是Windows的Z排序事件。 So that I can decide to show/hide my real time information accordingly. 这样我就可以决定显示/隐藏我的实时信息。

I am afraid that is not possible with SWT. 恐怕SWT无法做到。 It does not offer API to obtain the bounds of shells outside of the current application. 它不提供API来获取当前应用程序外部 shell的边界。

Your only choice here would be to access the platforms native features to obtain this information. 您在这里的唯一选择是访问平台本机功能以获得此信息。

This article about SWT custom widgets also has a brief introduction on how to integrate with native code: https://eclipse.org/articles/Article-Writing%20Your%20Own%20Widget/Writing%20Your%20Own%20Widget.htm 关于SWT自定义小部件的这篇文章还简要介绍了如何与本机代码集成: https : //eclipse.org/articles/Article-Writing%20Your%20Own%20Widget/Writing%20Your%20Own%20Widget.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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