Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » how to activate horizontal table scrolling
how to activate horizontal table scrolling [message #437146] Thu, 22 September 2005 19:49 Go to next message
Eclipse UserFriend
Originally posted by: bdberry.us.ibm.com

My table is initially empty but the listener populates it with data -
the vertical table scrolling seems to appear automatically but I dont
get any vertical scrolling. How do I enable this in the table itself
rather than trying to wrap it with a ScrolledComposite - that does not
look good in the GUI.

I am using a jface CheckboxTableViewer and create the table like so...

table = new Table (parentDetails, SWT.BORDER | SWT.FULL_SELECTION |
SWT.H_SCROLL | SWT.V_SCROLL | SWT.CHECK);

table.setLayout(new FillLayout());
table.setLinesVisible(true);
table.setHeaderVisible(true);

viewer = new CheckboxTableViewer(table);
Re: how to activate horizontal table scrolling [message #437148 is a reply to message #437146] Thu, 22 September 2005 19:58 Go to previous message
Eclipse UserFriend
Originally posted by: bdberry.us.ibm.com

Brian Berry wrote:
> My table is initially empty but the listener populates it with data -
> the vertical table scrolling seems to appear automatically but I dont
> get any vertical scrolling. How do I enable this in the table itself
> rather than trying to wrap it with a ScrolledComposite - that does not
> look good in the GUI.
>
> I am using a jface CheckboxTableViewer and create the table like so...
>
> table = new Table (parentDetails, SWT.BORDER | SWT.FULL_SELECTION |
> SWT.H_SCROLL | SWT.V_SCROLL | SWT.CHECK);
>
> table.setLayout(new FillLayout());
> table.setLinesVisible(true);
> table.setHeaderVisible(true);
>
> viewer = new CheckboxTableViewer(table);

Nevermind... I was not setting gridData.widthHint properly to force
scrolling in the first place.
Previous Topic:Perspective Restore / Show View Update Issue
Next Topic:Use another plugin's functionality
Goto Forum:
  


Current Time: Sun Dec 08 16:18:40 GMT 2024

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

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

Back to the top