Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to display Scrollable Table larger than Scrollable Composite(How to display Scrollable Table larger than Scrollable Composite)
How to display Scrollable Table larger than Scrollable Composite [message #492385] Tue, 20 October 2009 10:32 Go to next message
Sajit  is currently offline Sajit Friend
Messages: 6
Registered: October 2009
Junior Member
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 15:56 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
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
Previous Topic:HTML WYSIWYG Editor
Next Topic:Tableviewer Scrollbars
Goto Forum:
  


Current Time: Wed Aug 21 01:21:58 GMT 2019

Powered by FUDForum. Page generated in 0.02194 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top