setBounds for buttons and groups

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

setBounds for buttons and groups

Postby MichaelHuber » Fri Oct 22, 2004 4:21 am

hi there,

I'm evaluating SWT-Designer and first, what I'm missing
are the properties position and size for buttons or groups ?!?


using Eclipse 3.0.1 with SWT-Designer 2.1.1

michael
MichaelHuber
 
Posts: 4
Joined: Fri Oct 22, 2004 4:09 am

Re: setBounds for buttons and groups

Postby Eric Clayberg » Sat Oct 23, 2004 10:59 am

MichaelHuber wrote:I'm evaluating SWT-Designer and first, what I'm missing are the properties position and size for buttons or groups ?

In general, the layout manager you select will determine the constraints applied to a widget, so the size and position properties don't apply. Null layout is the only case where size and position properties make sense. In that case, you can move and position the widget on the design surface and it will generate the appropriate setSize() and setPosition() code. Size and position properties are not exposed in the properties view.
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

Postby MichaelHuber » Sun Oct 24, 2004 10:58 pm

Hi Eric,

thanks for your reply.
I miss size and bounds of buttons and groups
because I _use_ Null-Layout.
I have to reengineer several existing Windows-Applications
and I want to create pixel-exact copys of all dialogs.

No way to get these in the visual properties ?

michael
MichaelHuber
 
Posts: 4
Joined: Fri Oct 22, 2004 4:09 am

Postby Eric Clayberg » Mon Oct 25, 2004 1:40 pm

MichaelHuber wrote:No way to get these in the visual properties ?

The latest v2.1.1 build of SWT Designer now includes support for a bounds property under null layout.
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

Postby MichaelHuber » Mon Oct 25, 2004 10:44 pm

Hi Eric,

thanks for that change.

In my evaluation, I have found several other things
I miss for my daily work.

My I mail it to you ?

Michael
MichaelHuber
 
Posts: 4
Joined: Fri Oct 22, 2004 4:09 am

Postby Eric Clayberg » Tue Oct 26, 2004 12:46 pm

MichaelHuber wrote:May I mail it to you ?

Sure.
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