Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Force Shell Focus
Force Shell Focus [message #461729] Wed, 28 September 2005 18:07 Go to next message
Eclipse UserFriend
Originally posted by: jacker.web.de

Hi!

I am searching for a way to force a shell to the foreground.
shell.forceFocus() doesn't work. Any Idea?

Is there a posibility to detect wheter the shell is hidden behind another
Non-SWT-window?
Re: Force Shell Focus [message #461732 is a reply to message #461729] Wed, 28 September 2005 20:43 Go to previous message
Eclipse UserFriend
Originally posted by: ddana78ar.yahoo.com.ar

> I am searching for a way to force a shell to the
> foreground.
> shell.forceFocus() doesn't work. Any Idea?

I think that you are looking for the style SWT.ON_TOP for the shell, and when you change to another Non-SWT-window (ALT+TAB) you'll still see the SWT-window.

Another way is that you use the "setActive()" method of the shell, when is not active or at the top. But you'll set the focus in it, and loose from the other window.


> Is there a posibility to detect wheter the shell is
> hidden behind another
> Non-SWT-window?

You can add to the shell a ShellListener, and implement the method "shellDeactivated" or/and "shellIconified".
One is when you put another window over yours, and the other, well, when you icnonifie the shell, or "minimize" it.

Best regards.
Previous Topic:Scrollable Form not scrollable
Next Topic:OleAutomation wrapper code generator
Goto Forum:
  


Current Time: Thu Mar 28 10:41:11 GMT 2024

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

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

Back to the top