Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Restrict window size in SWT
Restrict window size in SWT [message #441351] Fri, 13 August 2004 05:08 Go to next message
Eclipse UserFriend
Originally posted by: zhengzhi82.163.com

Hi every body here,

I am newbie on SWT, and just wondering how to restrict windows size

in SWT component lib. I searched on the web, and found that in Swing we

can use setMinimumSize() to gain this purpose, but found nothing for SWT.

Could any body help me and tell me how to accomplish this stuff in SWT,

i.e., How to set max/min size of a certain window in SWT? Thanks a lot!

I am newbie, so please be as detailed as possible. ^_^
Re: Restrict window size in SWT [message #441353 is a reply to message #441351] Fri, 13 August 2004 07:14 Go to previous message
Eclipse UserFriend
Newbie_on_SWT_### wrote:

> I am newbie on SWT, and just wondering how to restrict windows size
> in SWT component lib.

I think that currently the only way to do this is to listen for the
resize event of the Shell (addControlListener) and to reset the size to
minimum if the event applied a too small dimension.

p.s.: It seems that the next release will contain setMinimuzmSize...
https://bugs.eclipse.org/bugs/show_bug.cgi?id=5016
Previous Topic:Closing a View or making a View invisible
Next Topic:How to determine the home location of the RCP application
Goto Forum:
  


Current Time: Thu Sep 25 05:16:03 EDT 2025

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

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

Back to the top