How to get Z ordering windows event for SWT Shell?

119 Views Asked by At

I have one RCP based application which creates SWT shell and windows to show some real time information. 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. 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. So that I can decide to show/hide my real time information accordingly.

1

There are 1 best solutions below

2
Rüdiger Herrmann On

I am afraid that is not possible with SWT. It does not offer API to obtain the bounds of shells outside of the current application.

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