[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Implementing a proper layout for wizard pages
|
- From: Karsten Stöckmann <ngc2997@xxxxxxx>
- Date: Tue, 01 Jul 2008 16:12:24 +0200
- Newsgroups: eclipse.platform.swt
- Organization: n/a
- User-agent: Thunderbird 2.0.0.14 (X11/20080505)
Eric Rizzo wrote:
> [..]
> A) If using a GridLayout, I set the widget's GridData to expand
> horizontally *and* its width hint to 1. This forces its "preferred" size
> to be just 1 pixel (which prevents it from stretching the container) and
> yet forces it to fill available space.
This does not work as expected: the container width is correct then, yet
the container is stretched _vertically_ and filled with empty space.
> B) Switch to a different layout that will properly use the SWT.WRAP
> style, such as TableWrapLayout, FillLayout, etc. It is always good to
> remember that there are other worlds than just GridLayout ;-)
Unfortunately, I guess I have to stick with GridLayout. FillLayout is
not an option because the wizard page has more than one Label with long
text.. (which actually makes the problem more complicated).
TableWrapLayout is not at my disposal directly; the app I am working on
is a standalone JFace application.
Best wishes,
Karsten
--
PGP Public Key ID 0x708CD1FE (pgpkeys.pca.dfn.de)
"When the light of day is dead, the spark of night ignites"