|Table with variable row heights [message #598201]
||Wed, 16 September 2009 11:09
| Ian Leslie
Registered: July 2009
I'm a Nebula newbie but found CompositeTable yesterday and it looked |
promising for what I wanted; a simple table where one column contains long
strings that wrap based on the column width and each row grows to the
height needed for that row's content.
I just ran through the snippets and did not see an example that is simiar
(I looked at Grid as well). Searching the forum I found
which indicates that rows must be of a fixed size. Is that still true?
I based my experiment on CompositeTableSnippet5.java because I want
resizable and sortable columns as well. But each row remained a fixed
size even after I regigged the Labels to have SWT.WRAP.
It seems that if I instead create my own custom row with its own layout I
will have more luck. Then I can make the columns resizable and sortable
myself in a similar way that AbstractSelectableRow and
AbstractNativeHeader work together to create resizable columns.
Does this seem at all reasonable? Am I pointed in the right direction?
Will rows with their own layout have variable height?
Thanks for your advice,
Powered by FUDForum
. Page generated in 0.01967 seconds