|Re: TableViewer & scroll bars [message #668632 is a reply to message #668631]
||Fri, 06 May 2011 09:50
| Grant Gayed
Registered: July 2009
Just to clarify, when I say column width, I don't mean the width of the |
content in the column, but the width of the column itself, as set by either
TableColumn.setWidth() or TableColumn.pack().
"Grant Gayed" <firstname.lastname@example.org> wrote in message
> 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 ).
> "SBS" <email@example.com> wrote in message
>>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.
Powered by FUDForum
. Page generated in 0.01540 seconds