Dialog Box [message #450889] |
Sat, 19 February 2005 16:49  |
Eclipse User |
|
|
|
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 #451101 is a reply to message #450899] |
Tue, 22 February 2005 19:11  |
Eclipse User |
|
|
|
<!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>
|
|
|
Powered by
FUDForum. Page generated in 0.02927 seconds