[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] dialog or Modal Window in SWT
|
Have you tried creating your dialog shell with the style
SWT.APPLICATION_MODAL?
Steve Northover/Ottawa/IBM@IBMCA
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
05/30/2003 09:19 AM
Please respond to platform-swt-dev
To: platform-swt-dev@xxxxxxxxxxx
cc: platform-swt-dev@xxxxxxxxxxx,
platform-swt-dev-admin@xxxxxxxxxxx
Subject: Re: [platform-swt-dev] dialog or Modal Window in
SWT
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/faq.html#whatisasnippet
"Steve Vanspall" <steve@xxxxxxxxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
05/29/2003 10:22 PM
Please respond to platform-swt-dev
To: <platform-swt-dev@xxxxxxxxxxx>
cc:
Subject: [platform-swt-dev] dialog or Modal Window in SWT
Hi there,
I am trying to make a Modal Window in SWT that display a selected image
from
a thumbnail.
I have tried
Shell dialog = new Shell(parentShell, SWT.DIALOG_TRIM);
....
populate dialog
blah blah blah
.....
dialog.pack();
dialog.open();
while(!dialog.isDisposed())
{
if (!thisFrame.getDisplay().readAndDispatch())
thisFrame.getDisplay().sleep();
}
now after this is where I am stuck.
I can get teh dialog to display, and also to act in a modal fashion i.e.
if
I try to select the parent window, the dialog title bar flashes, and I am
not able to go back to the parent window.
If I close the dialog window, something strange happens to the display. It
either disappears completely, or isn't all there, if I try to redraw the
screen, it works but I still and it is the active window, but I can't do
anything with it, the application seems to freeze
what am I doing wrong
Any help would be great
regards
Steve
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev