Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TitleAreaDialog non modal.
TitleAreaDialog non modal. [message #436575] Wed, 19 May 2004 16:50 Go to next message
strus is currently offline strusFriend
Messages: 113
Registered: July 2009
Senior Member
On eclipse 2.1.3, I try to use the SWT.MODELESS shell style to make my
dialog non modal.
The dialog does not become non modal as expected.
Any idea. ?
Re: TitleAreaDialog non modal. [message #436637 is a reply to message #436575] Fri, 21 May 2004 07:41 Go to previous messageGo to next message
Richard Moore is currently offline Richard MooreFriend
Messages: 71
Registered: July 2009
Member
Hi Strus,


Try extending the dialog and calling the setStyle in the constructor... like
so..


public class ClientProcessWizardDialog extends Dialog {



public ClientProcessWizardDialog(Shell parentShell) {

super(parentShell);

setShellStyle(SWT.TITLE | SWT.MODELESS | SWT.RESIZE);

}



}

Regards
Richard


"strus" <strus_fr@yahoo.fr> wrote in message
news:c8g2oj$v75$1@eclipse.org...
> On eclipse 2.1.3, I try to use the SWT.MODELESS shell style to make my
> dialog non modal.
> The dialog does not become non modal as expected.
> Any idea. ?
>
Re: TitleAreaDialog non modal. [message #436783 is a reply to message #436637] Mon, 24 May 2004 07:43 Go to previous message
Eclipse UserFriend
Originally posted by: Mathieu.Isoard.ext.bull.net

Ok, that works great. Thanks.
Note that:
public class ClientProcessWizardDialog extends Dialog {

public ClientProcessWizardDialog(Shell parentShell) {

super(parentShell);

setShellStyle(SWT.TITLE | SWT.MODELESS | SWT.RESIZE);

}

}

works great.

BUT:
Shell nonmodalShell = new Shell(..,SWT.MODELESS);
ClientProcessWizardDialog foo = new
ClientProcessWizardDialog(nonmodalShell);

public class ClientProcessWizardDialog extends Dialog {

public ClientProcessWizardDialog(Shell parentShell) {

super(parentShell);
}
}

does not work !!!



Richard Moore wrote:
>
> Hi Strus,
>
> Try extending the dialog and calling the setStyle in the constructor... like
> so..
>
> public class ClientProcessWizardDialog extends Dialog {
>
> public ClientProcessWizardDialog(Shell parentShell) {
>
> super(parentShell);
>
> setShellStyle(SWT.TITLE | SWT.MODELESS | SWT.RESIZE);
>
> }
>
> }
>
> Regards
> Richard
>
> "strus" <strus_fr@yahoo.fr> wrote in message
> news:c8g2oj$v75$1@eclipse.org...
> > On eclipse 2.1.3, I try to use the SWT.MODELESS shell style to make my
> > dialog non modal.
> > The dialog does not become non modal as expected.
> > Any idea. ?
> >

--
#########################################
# ISOARD Matthieu #
# mailto:mathieu.isoard@ext.bull.net #
# Phone : 04.76.29.73.76 #
Previous Topic:how to integrate swt with plugin
Next Topic:Legal affairs using Browser widget
Goto Forum:
  


Current Time: Sun Sep 22 19:26:01 GMT 2024

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

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

Back to the top