Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Modal Shells in cascade
Modal Shells in cascade [message #432793] Fri, 26 March 2004 15:32 Go to next message
Leos Urban is currently offline Leos UrbanFriend
Messages: 15
Registered: July 2009
Junior Member
Hello,
I found one problem with SWT (SWT 3.0-M6 Linux GTK ).
I have some shell (main window).
On button click I open shell with SWT.APPLICATION_MODAL (form window) in
center of screen with some data. This works fine -> I cannot set focus to
main window's widgets.

shell = new Shell(parent, SWT.APPLICATION_MODAL | SWT.TITLE );

Now I press button on form window and open new, confirmation shell with
SWT.APPLICATION_MODAL again. This also works fine, only confirmation
window's widgets can be focused. Here I press for example cancel button
and return back to form window.
But it seems as if form window losts modal property because I can now also
set focus to main window's widgets (with form window opened and
displayed)?!

I tested also SWT.PRIMARY_MODAL with the same result.

Is this bug or I do something wrong?
Does exist some workaround?

Thank you very much.
Leos
Re: Modal Shells in cascade [message #432844 is a reply to message #432793] Mon, 29 March 2004 17:58 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Please enter a problem reprort with a stand alone snippet showing the
problem. GTK only has one type of modality and it seems we have a bug using
it. Thakns.

"Leos Urban" <leos.urban@qds.cz> wrote in message
news:c41if2$1rm$1@eclipse.org...
> Hello,
> I found one problem with SWT (SWT 3.0-M6 Linux GTK ).
> I have some shell (main window).
> On button click I open shell with SWT.APPLICATION_MODAL (form window) in
> center of screen with some data. This works fine -> I cannot set focus to
> main window's widgets.
>
> shell = new Shell(parent, SWT.APPLICATION_MODAL | SWT.TITLE );
>
> Now I press button on form window and open new, confirmation shell with
> SWT.APPLICATION_MODAL again. This also works fine, only confirmation
> window's widgets can be focused. Here I press for example cancel button
> and return back to form window.
> But it seems as if form window losts modal property because I can now also
> set focus to main window's widgets (with form window opened and
> displayed)?!
>
> I tested also SWT.PRIMARY_MODAL with the same result.
>
> Is this bug or I do something wrong?
> Does exist some workaround?
>
> Thank you very much.
> Leos
>
>
>
>
Previous Topic:Don't want a right mouse click on a table selecting a row
Next Topic:Setting checkbox column size in CheckboxTableViewer
Goto Forum:
  


Current Time: Fri Apr 26 21:52:18 GMT 2024

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

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

Back to the top