Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Display.getActiveShell()
Display.getActiveShell() [message #464638] Fri, 25 November 2005 11:20 Go to next message
Eclipse UserFriend
Can someone explain what the Display.getActiveShell() method returns?
The javadoc says:
Returns the currently active Shell, or null if no shell belonging to the
currently running application is active.

What's confusing is the "currently running application" part.
So if I have a model dialog open, will this method return th e dialog
shell or my main window's shell?
What happens in case of a non-modal dialog?

Regards,
Lokesh
Re: Display.getActiveShell() [message #464645 is a reply to message #464638] Fri, 25 November 2005 16:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mwilli.iastate.edu

Lokesh Shah wrote:
> Can someone explain what the Display.getActiveShell() method returns?
> The javadoc says:
> Returns the currently active Shell, or null if no shell belonging to the
> currently running application is active.
>
> What's confusing is the "currently running application" part.
> So if I have a model dialog open, will this method return th e dialog
> shell or my main window's shell?
> What happens in case of a non-modal dialog?
>
> Regards,
> Lokesh
>
>
This returns the currently active shell for the program that you are
calling it from. If you only have one shell for your application, it
will return that shell. But if you have multiple shells, it will be the
one that is currently "active" or on top.
Re: Display.getActiveShell() [message #464647 is a reply to message #464645] Sat, 26 November 2005 10:27 Go to previous message
Eclipse UserFriend
Thanks Mike.

~Lokesh
Previous Topic:SWT 2.1: Increasing Combo popup's Item count
Next Topic:cairo no longer shipped with 3.2M3?
Goto Forum:
  


Current Time: Mon Jul 07 20:22:25 EDT 2025

Powered by FUDForum. Page generated in 0.03468 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top