Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsTableViewer & scroll bars
https://www.eclipse.org/forums/index.php/mv/msg/208351/667472/#msg_667472
How do I get a proper horizontal scroll bar to appear and function as desired? I have tried resizing the table itself but then the scroll bar is partially obscured.
Thanks,
-sbs]]>SBS 2011-04-28T23:34:04-00:00Re: TableViewer & scroll bars
https://www.eclipse.org/forums/index.php/mv/msg/208351/668631/#msg_668631
column's width is wider than the table's width. If the column's width is
only slightly wider then the scrollbar thumb will fill most of the gutter;
if the column's width is much larger than the table's width then the thumb
will become smaller.
If this is not what you're seeing then you should log a bug, and provide
some means of reproducing the problem (eg.- a code snippet with the template
from http://www.eclipse.org/swt/faq.php#whatisasnippet ).
Grant
"SBS" <jturnbul@uow.edu.au> wrote in message
news:ipct2g$ljl$1@news.eclipse.org...
>I have a one column table wrapped by a TableViewer. The viewer lives
>inside a Composite using FillLayout. I am trying to adjust the width of
>the single column when needed in an attempt to get a horizontal scroll bar
>to appear which would facilitate scrolling to see the entire width of the
>column. However, no matter what width I give the column, the best I can
>get is a scroll bar that has a large thumb that fills up the bar so that no
>actual scrolling is possible.
>
> How do I get a proper horizontal scroll bar to appear and function as
> desired? I have tried resizing the table itself but then the scroll bar
> is partially obscured.
>
> Thanks,
>
> -sbs]]>Grant Gayed2011-05-06T13:48:27-00:00Re: TableViewer & scroll bars
https://www.eclipse.org/forums/index.php/mv/msg/208351/668632/#msg_668632
content in the column, but the width of the column itself, as set by either
TableColumn.setWidth() or TableColumn.pack().
Grant
"Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
news:iq0to3$ifa$1@news.eclipse.org...
> In a one-column table a horizontal scrollbar should be shown whenever the
> column's width is wider than the table's width. If the column's width is
> only slightly wider then the scrollbar thumb will fill most of the gutter;
> if the column's width is much larger than the table's width then the thumb
> will become smaller.
>
> If this is not what you're seeing then you should log a bug, and provide
> some means of reproducing the problem (eg.- a code snippet with the
> template from http://www.eclipse.org/swt/faq.php#whatisasnippet ).
>
> Grant
>
>
> "SBS" <jturnbul@uow.edu.au> wrote in message
> news:ipct2g$ljl$1@news.eclipse.org...
>>I have a one column table wrapped by a TableViewer. The viewer lives
>>inside a Composite using FillLayout. I am trying to adjust the width of
>>the single column when needed in an attempt to get a horizontal scroll bar
>>to appear which would facilitate scrolling to see the entire width of the
>>column. However, no matter what width I give the column, the best I can
>>get is a scroll bar that has a large thumb that fills up the bar so that
>>no actual scrolling is possible.
>>
>> How do I get a proper horizontal scroll bar to appear and function as
>> desired? I have tried resizing the table itself but then the scroll bar
>> is partially obscured.
>>
>> Thanks,
>>
>> -sbs
>
>]]>Grant Gayed2011-05-06T13:50:41-00:00