[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: ScrollBar in Table/List

No, the only generic way to scroll widgets like this is to put them into a
ScrolledComposite, which provides its own set of scrollbars and a
setOrigin(...) method.  Example ScrolledComposite snippets:
http://www.eclipse.org/swt/snippets/#scrolledcomposite

Grant


"Stefan Steiner" <dienstfuchs@xxxxxxxxx> wrote in message
news:ekk1ib$118$1@xxxxxxxxxxxxxxxxxxxx
> Thats not what i want. I want a generic scrolling, every control
> inherited from Scrollable should be scrolled in that way.
(setSelection()).
>
> Is that possible?
>
>
> Tom Schindl schrieb:
> > Hi,
> >
> > tables are scrolled using
> > - table#setTopIndex(int)
> > - table#setSelection(*);
> > - table#showSelection();
> >
> > Tom
> >
> > Stefan Steineer schrieb:
> >> Hy,
> >>
> >> I tried to scroll a scrollbar in a table or list with the code:
> >> "getVerticalBar.setSelection(...)".
> >> The problem is, that the table does not redraw itself to the current
> >> position of the scrollBar. The same works perfectly in a Canvas.
> >>
> >> Is there any possibility to do that?
> >>
> >>
> >> Thanks.