[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: multiple lines in a TreeItem
|
Hi,
This is a limitation of SWT-Trees you need to use a custom drawn control
from nebula (http://www.eclipse.org/nebula/) to achieve what you want.
Tom
Derek Morris schrieb:
> Hi,
>
> I am trying to display multiple lines in a TreeItem. Each item has a
> variable number of lines to display - from 1 to 10 (say). I want each
> row to be the minimum height necessary to display its text.
>
> I have implemented a paintListener using snippet227 as a guide, but this
> seems to make every row the same size - large enough to hold the maximum
> number of lines (10).
>
> Any ideas as to how to achieve what I am looking for?
>
> Thanks
>
>