Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Dialog Box
Dialog Box [message #450889] Sat, 19 February 2005 21:49 Go to next message
Eclipse UserFriend
Originally posted by: pypatel.uci.edu

I was wondering if someone could help me create a dialog box that would not
allow a user to select the source shell without closes teh dialog shell.

I.e. say i had two shells, shell 1 is the main window and shell 2 is the
dialog

If shell 2 is opened, I don't want shell 1 to be accessible unless they
close shell two.

Is there a way to do this in SWT without using logic? If so, please advise.

Thanks in advance.
Re: Dialog Box [message #450892 is a reply to message #450889] Sun, 20 February 2005 02:06 Go to previous messageGo to next message
Roshan Ail is currently offline Roshan AilFriend
Messages: 7
Registered: July 2009
Junior Member
You could use the org.eclipse.jface.dialogs.Dialog class.
This opens up a modal dialog inside the parent shell.

Alternatively you can set the style of your shell to (SWT.DIALOG_TRIM |
SWT.APPLICATION_MODAL)


Roshan



Premal Patel wrote:
> I was wondering if someone could help me create a dialog box that would not
> allow a user to select the source shell without closes teh dialog shell.
>
> I.e. say i had two shells, shell 1 is the main window and shell 2 is the
> dialog
>
> If shell 2 is opened, I don't want shell 1 to be accessible unless they
> close shell two.
>
> Is there a way to do this in SWT without using logic? If so, please advise.
>
> Thanks in advance.
>
>
Re: Dialog Box [message #450899 is a reply to message #450892] Sun, 20 February 2005 21:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Nightwing812.gmail.com

I wanted to stay away from using JFace, and it seems like the
APPLICATION_MODAL settings works. Thanks for your help!

Pranav

Roshan wrote:

> You could use the org.eclipse.jface.dialogs.Dialog class.
> This opens up a modal dialog inside the parent shell.

> Alternatively you can set the style of your shell to (SWT.DIALOG_TRIM |
> SWT.APPLICATION_MODAL)


> Roshan



> Premal Patel wrote:
>> I was wondering if someone could help me create a dialog box that would not
>> allow a user to select the source shell without closes teh dialog shell.
>>
>> I.e. say i had two shells, shell 1 is the main window and shell 2 is the
>> dialog
>>
>> If shell 2 is opened, I don't want shell 1 to be accessible unless they
>> close shell two.
>>
>> Is there a way to do this in SWT without using logic? If so, please advise.
>>
>> Thanks in advance.
>>
>>
Re: Dialog Box [message #451101 is a reply to message #450899] Wed, 23 February 2005 00:11 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="serif">Alternatively, you can pass the parent shell to the
child dialog in the constructor instead of the display instance.  This
automatically creates a modal, DIALOG_TRIM shell and brings it to the
front.<br>
<br>
Daniel<br>
</font><br>
Premal wrote:
<blockquote cite="midcvb04m$bo5$1@www.eclipse.org" type="cite">I wanted
to stay away from using JFace, and it seems like the APPLICATION_MODAL
settings works.  Thanks for your help!
<br>
<br>
Pranav
<br>
<br>
Roshan wrote:
<br>
<br>
<blockquote type="cite">You could use the
org.eclipse.jface.dialogs.Dialog class.
<br>
This opens up a modal dialog inside the parent shell.
<br>
</blockquote>
<br>
<blockquote type="cite">Alternatively you can set the style of your
shell to (SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL)
<br>
</blockquote>
<br>
<br>
<blockquote type="cite">Roshan
<br>
</blockquote>
<br>
<br>
<br>
<blockquote type="cite">Premal Patel wrote:
<br>
<blockquote type="cite">I was wondering if someone could help me
create a dialog box that would not
<br>
allow a user to select the source shell without closes teh dialog
shell.
<br>
<br>
I.e. say i had two shells, shell 1 is the main window and shell 2 is
the
<br>
dialog
<br>
<br>
If shell 2 is opened, I don't want shell 1 to be accessible unless they
<br>
close shell two.
<br>
<br>
Is there a way to do this in SWT without using logic?  If so, please
advise.
<br>
<br>
Thanks in advance.
<br>
<br>
<br>
</blockquote>
</blockquote>
<br>
<br>
</blockquote>
</body>
</html>
Previous Topic:error in executing eclipse !
Next Topic:Image as Background
Goto Forum:
  


Current Time: Fri Apr 26 09:06:39 GMT 2024

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

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

Back to the top