Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWTForms : How to set the controls width or height ?
SWTForms : How to set the controls width or height ? [message #463426] Sat, 05 November 2005 16:52 Go to next message
Ivan is currently offline IvanFriend
Messages: 149
Registered: July 2009
Senior Member
Hi,

I'm looking for something similar to SetPreferredSize in Swing which
able to set the width or height of controls in FormLayout.
Is there anyway that i can do this in SWTForms ?

Thanks
Re: SWTForms : How to set the controls width or height ? [message #463477 is a reply to message #463426] Mon, 07 November 2005 20:49 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
SWT Forms is a UI package on to of SWT that uses SWT to emulate a flat, web
page look.
FormLayout in an SWT layout class that positions and resizes the children of
a composite.

If you are after FormLayout, then investigate FormData and FormAttachment.
These allow you to configure the controls that are layed out See
http://eclipse.org/articles/Understanding%20Layouts/Understa nding%20Layouts.htm
for a discussion of SWT layouts. Hope this helps.

"Ivan" <ivanooi@gmail.com> wrote in message
news:77d403c8a6c3a0923a778eb98221bf70$1@www.eclipse.org...
> Hi,
>
> I'm looking for something similar to SetPreferredSize in Swing which
> able to set the width or height of controls in FormLayout.
> Is there anyway that i can do this in SWTForms ?
>
> Thanks
>
Previous Topic:SWT Universal Binary for Mac OS X86
Next Topic:Repost:How to have tooltip displayed on a table cell in a table item?
Goto Forum:
  


Current Time: Thu Nov 27 00:41:32 GMT 2014

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

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