Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Layout control size
SWT Layout control size [message #441271] Thu, 12 August 2004 16:59 Go to next message
Eclipse UserFriend
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 10:29 Go to previous message
Eclipse UserFriend
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: Sun Nov 02 21:33:42 EST 2025

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

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

Back to the top