|
|
Re: TitleAreaDialog non modal. [message #436783 is a reply to message #436637] |
Mon, 24 May 2004 07:43 |
Eclipse User |
|
|
|
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 #
|
|
|
Powered by
FUDForum. Page generated in 0.04444 seconds