Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Disable shell resize
Disable shell resize [message #459951] Sun, 21 August 2005 04:24 Go to next message
Eclipse UserFriend
Originally posted by: ignorante.ignorante.com

Is there a way to disable the shell resize ?

I've been looking for that, but no body says something specifically for
this case.

I dont want that the shell can change of size, no bigger, no smaller of
the original size.

Thanks
Re: Disable shell resize [message #459962 is a reply to message #459951] Sun, 21 August 2005 20:36 Go to previous messageGo to next message
Max Rotvel is currently offline Max RotvelFriend
Messages: 21
Registered: July 2009
Junior Member
On Sun, 21 Aug 2005 06:24:18 +0200, ignorante <ignorante@ignorante.com>
wrote:

> Is there a way to disable the shell resize ?
>
> I've been looking for that, but no body says something specifically for
> this case.

When you create your shell, don't specify the RESIZE style (have a look at
the Shell Javadoc). This should give you a standard shell that doesn't
resize:

shell = new Shell(parent, SWT.CLOSE | SWT.TITLE | SWT.MIN | SWT.MAX);

--
Max - rotvel AT bolignet-aarhus DOT dk
Re: Disable shell resize [message #460418 is a reply to message #459962] Thu, 25 August 2005 16:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ignorante.ignorante.com

Well, it continues resizing, and by the way, i want to it doesnt
maximisize, too.

the lines are:

sShell = new Shell(SWT.ON_TOP | SWT.SHELL_TRIM | SWT.CLOSE | SWT.TITLE);
Re: Disable shell resize [message #460422 is a reply to message #460418] Thu, 25 August 2005 17:44 Go to previous messageGo to next message
Connie Lam is currently offline Connie LamFriend
Messages: 24
Registered: July 2009
Junior Member
ignorante wrote:

> Well, it continues resizing, and by the way, i want to it doesnt
> maximisize, too.

> the lines are:

> sShell = new Shell(SWT.ON_TOP | SWT.SHELL_TRIM | SWT.CLOSE | SWT.TITLE);

Don't use SHELL_TRIM since it includes resize and maximize. The following
is from the javadoc:

SHELL_TRIM
the result of combining the constants which are required to produce a
typical application top level shell: (that is, CLOSE | TITLE | MIN | MAX |
RESIZE)

Connie
Re: Disable shell resize [message #460423 is a reply to message #460422] Thu, 25 August 2005 18:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ignorante.ignorante.com

It works Great!

I was really stupid XD

I never notice that about SWT.SHELL_TRIM

Thanks :D

sShell = new Shell(SWT.ON_TOP | SWT.CLOSE | SWT.TITLE);
Re: Disable shell resize [message #460431 is a reply to message #460423] Fri, 26 August 2005 09:33 Go to previous message
Eclipse UserFriend
Originally posted by: peter.schuebl.learning-media.net

> sShell = new Shell(SWT.ON_TOP | SWT.CLOSE | SWT.TITLE);

just for the record - you could switch of the RESIZE flag using

sShell = new Shell(SWT.SHELL_TRIM & ~ SWT.RESIZE);
Previous Topic:Table and TableCursor
Next Topic:Customized Group
Goto Forum:
  


Current Time: Tue Apr 13 19:54:19 GMT 2021

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

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

Back to the top