stop swt window resizing [message #464237] |
Fri, 18 November 2005 15:58  |
Eclipse User |
|
|
|
does anyone know how to stop an swt window resizing?
i've use this code below which stops it but still alows the arrows on the
sides and cornersL -
Listener listener = new Listener () {
public void handleEvent (Event e) {
switch (e.type) {
case SWT.Resize:
optionsShell.setSize(400,400);
System.out.println ("Resize received");
break;
case SWT.Paint:
System.out.println ("Paint received");
break;
default:
System.out.println ("Unknown event received");
}
}
};
optionsShell.addListener (SWT.Resize, listener);
optionsShell.addListener (SWT.Paint, listener);
can anyone provide any better examples or prompt me in the right direction,
thanks
|
|
|
|
|
|
Re: stop swt window resizing [message #464640 is a reply to message #464587] |
Fri, 25 November 2005 12:35  |
Eclipse User |
|
|
|
Once in a while, generally after Gnome makes a new release, SWT.CLOSE stops giving the desired behavior on GTK Linux. (for example, between the 2.1 and 3.0 releases). I don't think the next release of Gnome will break this, but just fair warning. AFAIK, it works exactly as required on all other platforms consistantly.
|
|
|
Powered by
FUDForum. Page generated in 0.05864 seconds