Newbie : Test/Preview different from Design time

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

Newbie : Test/Preview different from Design time

Postby Sebastien » Tue Jun 07, 2005 6:29 am

Hi, this is actually my first entirely drawn using SWT Designer composite. It as many controls and groups and mostly uses grid layouts. It looks conceivably good at design time and at runtime (after a pack()) but when I have a look at it by clicking on the "Test/Previewâ€
Sebastien
Sebastien
 
Posts: 16
Joined: Thu Jun 02, 2005 12:18 pm
Location: Canada

Re: Newbie : Test/Preview different from Design time

Postby Eric Clayberg » Tue Jun 07, 2005 6:18 pm

Sebastien wrote:Have I something wrong within my composite so that it would appear differently at test/preview?

You are building a simple composite; the test/preview command displays it in a window of the same size.

You may resize that preview window to any size that you like to see how the composite will size itself. If the preview window isn't quite tall enough, you can resize it.
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

Newbie : Test/Preview different from Design time

Postby Sebastien » Wed Jun 08, 2005 5:58 am

Hello, thank you for the answer.

I think you're actually right. Both windows (at design time and at test/preview) seem to have the same height. Just a hunch: could my chopped Text box be caused by the title bar that is added at test/preview but not at design time, considering that both windows have the same height but one as a title bar and not the other?

Thanks
Sebastien
Sebastien
 
Posts: 16
Joined: Thu Jun 02, 2005 12:18 pm
Location: Canada

Re: Newbie : Test/Preview different from Design time

Postby Eric Clayberg » Thu Jun 09, 2005 3:43 pm

Sebastien wrote:I think you're actually right. Both windows (at design time and at test/preview) seem to have the same height. Just a hunch: could my chopped Text box be caused by the title bar that is added at test/preview but not at design time, considering that both windows have the same height but one as a title bar and not the other?

Yes. The titlebar height would be the likely difference.

The latest v4.0.1 build adds the additional height of the titlebar to the size of the window.
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