Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Modeless shell problem on linux
Modeless shell problem on linux [message #465911] Wed, 21 December 2005 21:07 Go to next message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
I have a shell that is parented to a wizard dialog. It is an
informational window off to the side of the dialog. I therefore want it
to be modeless. On Windows there is no problem. On linux (GTK) the shell
is annoyingly modal. When it pops up I can no longer access the parent
dialog.

I am creating the shell with
Shell win = new Shell(this.getShell(), SWT.MODELESS | SWT.TOOL);

Anybody have any clues as to how I make this a modeless window? Tooltips
are modeless aren't they?
Re: Modeless shell problem on linux [message #465923 is a reply to message #465911] Thu, 22 December 2005 14:54 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
The parent shell you are using (from this.getShell()) is a modal shell,
right?

See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=117580

"Jim Adams" <jim.adams@sas.com> wrote in message
news:docg5t$daa$1@utils.eclipse.org...
>I have a shell that is parented to a wizard dialog. It is an informational
>window off to the side of the dialog. I therefore want it to be modeless.
>On Windows there is no problem. On linux (GTK) the shell is annoyingly
>modal. When it pops up I can no longer access the parent dialog.
>
> I am creating the shell with
> Shell win = new Shell(this.getShell(), SWT.MODELESS | SWT.TOOL);
>
> Anybody have any clues as to how I make this a modeless window? Tooltips
> are modeless aren't they?
Re: Modeless shell problem on linux [message #465936 is a reply to message #465911] Fri, 23 December 2005 14:48 Go to previous message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
Jim Adams wrote:
> I have a shell that is parented to a wizard dialog. It is an
> informational window off to the side of the dialog. I therefore want it
> to be modeless. On Windows there is no problem. On linux (GTK) the shell
> is annoyingly modal. When it pops up I can no longer access the parent
> dialog.
>
> I am creating the shell with
> Shell win = new Shell(this.getShell(), SWT.MODELESS | SWT.TOOL);
>
> Anybody have any clues as to how I make this a modeless window? Tooltips
> are modeless aren't they?

The only way to solve this appears to be to use SWT.ON_TOP instead of
SWT.TOOL. This is, of course, unacceptable but there is no other choice.
So I am only using ON_TOP if I am running on GTK. It seems odd to me
that SWT.TOOL is not used for tooltip windows since that seems to be its
intent.
Previous Topic:How to implement multiple windows in SWT
Next Topic:JFace Dialog ExceptionInInitializerError
Goto Forum:
  


Current Time: Sun Dec 08 23:07:33 GMT 2024

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

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

Back to the top