set Column width to show complete text [message #502498] |
Tue, 08 December 2009 09:38  |
Eclipse User |
|
|
|
hello everyone,
I have a table with only one column, every cell contains very long text. I set the column width big enough (e.g. 10000), and the table is also scrollable, but the text was still not completely displayed.
maybe could someone help me to solve this problem
kind regard
kai
|
|
|
|
|
|
Re: set Column width to show complete text [message #503059 is a reply to message #502498] |
Thu, 10 December 2009 12:41  |
Eclipse User |
|
|
|
Hi Kai,
After setting your item texts you should pack() the column, which will make
it the minimum width that's required to fit the texts. The platform
limitation is reached if your column width wants to exceed 32767, but if you
think that 10000 pixels is wide enough then this should not be the issue.
Are you able to provide a snippet that shows the problem? There are many
example Table snippets at http://www.eclipse.org/swt/snippets#table that you
could use as a starting point.
Grant
"kai guo" <kai.guo@afra.de> wrote in message
news:hflod3$bs2$1@build.eclipse.org...
> hello everyone,
>
> I have a table with only one column, every cell contains very long text. I
set the column width big enough (e.g. 10000), and the table is also
scrollable, but the text was still not completely displayed.
>
> maybe could someone help me to solve this problem
>
> kind regard
> kai
|
|
|
Powered by
FUDForum. Page generated in 0.05983 seconds