Reputation: 606
I have an Eclipse RCP application that is making functional pop up boxes using shells similar to those in Eclipse IDE.
At present I am making them disappear when the mouse moves off of them, but this is proving difficult for our users to manage.
I'd like to replicate the behaviour of the Eclipse IDE popups that only disappear when the user interact with any part of the system that is not the popup. For example clicking on the windows task bar.
I just can't figure out how the shell knows that the user is doing something in windows, to make the box disappear.
All help would be greatly appreciated.
Upvotes: 3
Views: 453
Reputation: 36884
Listen for SWT.Deactivate
and SWT.Close
on the Shell
to be notified when the user navigates away from it or closes it.
Upvotes: 4