|
Re: Disabling The RESIZING of a WINDOW [message #267805 is a reply to message #267777] |
Fri, 16 January 2009 21:17 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
On 1/16/2009 8:51 AM, adithya wrote:
> Hi..I am developing an editor using SWT/JFace and I am specifying the
> size of the window using
> getShell.setBounds(200,100,400,500);
> getShell().setMaximized(false);
> parent.pack();
>
> but its not working.
>
> I don't want the user to maximize the window i.e. I want the size to be
> what I have decided..How do I do this??
>
When you create the shell, what style bits (int argument) are you
passing to the constructor?
See the class Javadoc under the title "Styles:" for what bits can be
used and then look in the SWT class for their meanings.
Hope this helps,
Eric
|
|
|
|
Re: Disabling The RESIZING of a WINDOW [message #267828 is a reply to message #267809] |
Mon, 19 January 2009 21:14 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
On 1/17/2009 6:42 AM, adithya wrote:
> This is what i have done..
>
> public class EditorTry7 extends ApplicationWindow
> {
> public EditorTry7()
> {
> super(null);
> }
<snipped more code>
>
> I dint get any option as Styles,as there is no argument in "open()"
> method..
> What should i do as to disable resizing.
>
Look at your call to the super constructor; do you know why you're
passing null? Do you know the ramifications of doing so, instead of
passing in a Shell object?
Also look at the methods that ApplicationWindow inherits from Window,
specifically getShellStyle()/setShellStyle().
A little reading of the Javadoc and the source code will go a long way.
Eric
|
|
|
|
Powered by
FUDForum. Page generated in 0.08087 seconds