[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Equally sized widgets

Try FillLayout instead (set its fillayout.type = FillLayout.VERTICAL).

This will make them all the same size, they will as wide as the widest one and as tall as the tallest one.

Marian Schedenig wrote:
I have several windows/shells which contain several similar components
aligned vertically in a one-line GridLayout. Currently, the dimensions of
these widgets depend on their contents (in my case, they're all composites
containing a table and two buttons, with very different contents for the
tables). For example, if two tables are empty and the third one contains a
long list, the first two widgets get so small that the buttons disappear.

What I'd need is a way to assign weights to the widgets so that all three
widgets always have the same height. (I can't use fixed sizes as I'm
working on a 1920x1200 GTK system with the targets being Windows systems
with 800x600 or 1024x768 resolutions).

Any ideas are welcome.

Thx,
Marian.


-- Thanks, Rich Kulp