how to activate horizontal table scrolling [message #437146] |
Thu, 22 September 2005 19:49 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03371 seconds