How to display Scrollable Table larger than Scrollable Composite [message #492385] |
Tue, 20 October 2009 06:32  |
Eclipse User |
|
|
|
Hello,
I am trying to display a table that is larger (by height) than the scrollable composite in SWT. The maximum height of the scrollable composite can only be set to (938, 32767). Scroll bars are automatically added to the tables.
I would like the compsoite to be scrollable to the entire height of the table rather than using individual scrollers of tables.
The problem may also be expressed alternatively as:
Composite c = new Composite(parent, SWT.NONE);
c.setSize(100, 100000);
System.out.println(c.getSize());
The size printed out is (100, 32767).
32767 (7FFF) is the maximum value for a short. I am not entirely sure why the size is constrained to the max value of a short since it is expressed as an int in the OS
Please help asap.
Thanks,
Sajit
|
|
|
Re: How to display Scrollable Table larger than Scrollable Composite [message #492765 is a reply to message #492385] |
Wed, 21 October 2009 11:56  |
Eclipse User |
|
|
|
Hi Sajit,
This is an OS limitation, Controls in general cannot be given a larger size
than this. What behaviour are you achieving by using a ScrolledComposite
instead of the Table's scrollbar? Scrolling by pixel? Scrolling Tables in
tandem? Other?
Grant
"Sajit" <catchpiscean@rediffmail.com> wrote in message
news:hbk3jb$kkf$1@build.eclipse.org...
> Hello,
>
> I am trying to display a table that is larger (by height) than the
scrollable composite in SWT. The maximum height of the scrollable composite
can only be set to (938, 32767). Scroll bars are automatically added to the
tables.
>
> I would like the compsoite to be scrollable to the entire height of the
table rather than using individual scrollers of tables.
>
> The problem may also be expressed alternatively as:
>
> Composite c = new Composite(parent, SWT.NONE);
> c.setSize(100, 100000);
> System.out.println(c.getSize());
>
> The size printed out is (100, 32767).
> 32767 (7FFF) is the maximum value for a short. I am not entirely sure why
the size is constrained to the max value of a short since it is expressed as
an int in the OS
>
> Please help asap.
>
>
> Thanks,
>
> Sajit
|
|
|
Powered by
FUDForum. Page generated in 0.34407 seconds