Application Windows Dynamic Sizing.

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Application Windows Dynamic Sizing.

Postby petecheng » Tue Jun 14, 2005 4:17 am

Is there a way in SWT-Designer to make a Application Windows Size Dynamic instead of Specify a Static Size for instance (800X600)?

So the windows will automatically sized according to the resolution of user window? If i set my resolution to 1024X768, and Maximize my window, everything inside the panel will be resized.

I know it can be done by modifing the code, just wondering if SWT-Designer has that feature yet.

Thanks
petecheng
 
Posts: 6
Joined: Mon Jun 13, 2005 7:37 am

Re: Application Windows Dynamic Sizing.

Postby Eric Clayberg » Tue Jun 14, 2005 4:47 am

petecheng wrote:Is there a way in SWT-Designer to make a Application Windows Size Dynamic instead of Specify a Static Size for instance (800X600)? So the windows will automatically sized according to the resolution of user window? If i set my resolution to 1024X768, and Maximize my window, everything inside the panel will be resized. I know it can be done by modifing the code, just wondering if SWT-Designer has that feature yet.

I'm not sure what you are asking for. Do you want you window to always be maximized when it is opened? What code modifications are you referring to?

As to the size of the components within your window, those will resize themselves depending on the layout manager you are using. You can have widgets keep the same size or grow/shrink as appropriate.

SWT Designer fully supports all of the SWT layout managers, so you should be able to achieve almost any resizing behavior that you like.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Application Windows Dynamic Sizing.

Postby petecheng » Tue Jun 14, 2005 5:54 am

Here are an example, I did try all different Layouts, but doesn't seems to solve the problem, maybe you can suggest a layout.


When I Maximized, I want everything else to resized,

I don't want it to look like this.
Last edited by petecheng on Tue Jun 14, 2005 7:40 am, edited 1 time in total.
petecheng
 
Posts: 6
Joined: Mon Jun 13, 2005 7:37 am

Re: Application Windows Dynamic Sizing.

Postby Eric Clayberg » Tue Jun 14, 2005 7:31 am

petecheng wrote:Here are an example, I did try all different Layouts, but doesn't seems to solve the problem, maybe you can suggest a layout. When I Maximized, I want everything else to resized

Based on your screen shots, it appears that you are using a null layout. If you want the widgets to resize, you will need to use a layout manager like GridLayout or FormLayout. Each of those layouts give you the opportunity to specify constraints on how the various widgets are supposed to resize when the window resizes.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest