Resolution problem

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

Resolution problem

Postby avier5 » Sun Oct 10, 2004 5:28 am

Hi All,

I am trying to create a wizard that will be seen the same on every screen and in every platform. Means that all the it's components will grow or shrink with the screen's resolution - and still will be left nicly visible.

Which steps I can do to ensure that function?

Examples are very welcome... :D

Thanks a lot,
HBC
avier5
 
Posts: 41
Joined: Thu Jul 22, 2004 12:12 am

Re: Resolution problem

Postby Eric Clayberg » Sun Oct 10, 2004 7:54 am

avier5 wrote:I am trying to create a wizard that will be seen the same on every screen and in every platform. Means that all the it's components will grow or shrink with the screen's resolution - and still will be left nicly visible. Which steps I can do to ensure that function?

Two things:

1) Avoid hard coding any fonts. Let the system use the default system fonts.

2) Avoid using any layout manager that use fixed coordinates (like null layout or FormLayout). FormLayout can be used, but you have to be careful to leave two sides of every widget unconstrained and use widget attachments to link widget together. The idea is to let the widgets find their natural shape based on their contents and the current system font.

In general, I would then recommend using GridLayout (and avoid setting any width or height hints).
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