|
|
Re: Calculate the number of visible items in a Table [message #443817 is a reply to message #443767] |
Fri, 01 October 2004 12:45 |
Ruben Hesselbæk Messages: 14 Registered: July 2009 |
Junior Member |
|
|
I have tried calling computeSize(SWT.DEFAULT, SWT.DEFAULT), since i can't
find computeBounds, and it is still not correct.
The problem is that computeSize() just returns the size needed to show the
table with all the current elements, and since the table is allready full,
then the size will be wrong.
If i make the shell larger, the returned size will be too small, because i
need to add TableItems to fill the table.
If i make the shell smaller, the returned size will be too large, because i
need to remove TableItems from the table.
I need a method that tells me the size of the Table after the resize.
/Ruben
"Randy Hudson" <none@us.ibm.com> wrote in message
news:cjh501$1v7$1@eclipse.org...
> Have you tried calling computeBounds on a table with nothing but the
> headers?
>
> "Ruben Hesselb
|
|
|
Powered by
FUDForum. Page generated in 0.03787 seconds