SWT Table with different sized rows and wrapped text [message #507879] |
Thu, 14 January 2010 14:08  |
Eclipse User |
|
|
|
Hi,
I am trying to create a table that can have long and short lines as well
as different numbers of lines in each row.
I have the MeasureItem, EraseItem and PaintItem snippet, but even when I
report the correct size for each entry all of the entries are same height.
1. How do I create a table with rows having different heights?
2. Is there an easy way to wrap the text in a row or do I have to build
my own paint module for each item?
Thanks,
Bill Masek
billmasek@comcast.net
|
|
|
|
|
|
Re: SWT Table with different sized rows and wrapped text [message #508254 is a reply to message #508094] |
Mon, 18 January 2010 02:00  |
Eclipse User |
|
|
|
On 15.01.2010 22:13, Bill Masek wrote:
> Thank you for responding.
>
> In that snippet all of the rows are the same height. It also states that
> the feature is part of SWT. In the table I am looking for every row
> could have a different height.
I understand that, but in your original posting you asked two different
questions, the second being answered by the corresponding link.
- Daniel
> Thanks,
> Bill Masek
>
> Daniel Krügler wrote:
>> On 15.01.2010 01:05, Bill Masek wrote:
>>> I am trying to create a table that can have long and short lines as well
>>> as different numbers of lines in each row.
>>>
>>> I have the MeasureItem, EraseItem and PaintItem snippet, but even when I
>>> report the correct size for each entry all of the entries are same
>>> height.
>>>
>>> 1. How do I create a table with rows having different heights?
>>
>> Not with SWT, which is affected by corresponding native limitations.
>>
>>> 2. Is there an easy way to wrap the text in a row or do I have to build
>>> my own paint module for each item?
>>
>> Have a look at
>>
>> http://wiki.eclipse.org/index.php/JFaceSnippets#Snippet006Ta bleMultiLineCells
>>
>>
>> Hint: It's a good idea to first check
>>
>> http://wiki.eclipse.org/index.php/JFaceSnippets
>>
>> which usually provides examples of interesting use cases.
>>
>> HTH & Greetings from Bremen,
>>
>> Daniel Krügler
|
|
|
Powered by
FUDForum. Page generated in 0.26543 seconds