Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Layout control size
SWT Layout control size [message #441271] Thu, 12 August 2004 20:59 Go to next message
Michael Brown is currently offline Michael BrownFriend
Messages: 20
Registered: July 2009
Junior Member
I have a SWT form being laid out that has three buttons side-by-side in the
lower right corner of the form. How can I make the buttons all be the same
size without having to specify the size? Basically I want to use the
platform-specific natural size of the widest button for all the buttons.

If the buttons were stacked vertically, I could align their left/right sides
to get them to be the same width. How can I get the same width when they're
lined up in a row instead of a column?

Thanks....

Mike
Re: SWT Layout control size [message #441362 is a reply to message #441271] Fri, 13 August 2004 14:29 Go to previous message
Carolyn MacLeod is currently offline Carolyn MacLeodFriend
Messages: 149
Registered: July 2009
Senior Member
Try putting them in a RowLayout with pack set to false.
Carolyn

"Michael Brown" <mab@purdue.edu> wrote in message
news:cfglie$vk9$1@eclipse.org...
> I have a SWT form being laid out that has three buttons side-by-side in
the
> lower right corner of the form. How can I make the buttons all be the
same
> size without having to specify the size? Basically I want to use the
> platform-specific natural size of the widest button for all the buttons.
>
> If the buttons were stacked vertically, I could align their left/right
sides
> to get them to be the same width. How can I get the same width when
they're
> lined up in a row instead of a column?
>
> Thanks....
>
> Mike
>
>
Previous Topic:alpha blending oddity
Next Topic:Possible bug: view with a browser
Goto Forum:
  


Current Time: Thu Apr 25 09:08:55 GMT 2024

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

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

Back to the top