|Need help to control scrolling in the gallery [message #589389]
||Tue, 22 April 2008 07:27
| Trevor Campbell
Registered: July 2009
I am using a Gallery and am adding (using drag & drop) images into the
gallery but don't seem to be able to stop the gallery repositioning itself
to the top.
I am using SWT.VIRTUAL and gallery.clearAll(); each time I add one or more
items into the middle of the "list";
I have tried: gallery.getVerticalBar().setSelection(scrollPosition);
but that didn't quite work. The scrollbar was set but the gallery was
still positioned at the top.
I also tried gallery.showItem(item); That works pretty well but the shown
Item can be anywhere ( top or bottom) so the page jumps about a bit
unexpectedly for the user.
Any help would be appreciated
Powered by FUDForum
. Page generated in 0.01513 seconds