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

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.

-- 
Hofstadter's law: "It always takes longer than you think, even when you take
account of Hofstadter's law".