Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Need help to control scrolling in the gallery
Need help to control scrolling in the gallery [message #589389] Tue, 22 April 2008 07:27
Trevor Campbell is currently offline Trevor Campbell
Messages: 23
Registered: July 2009
Junior Member
Hi,

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
Thanks
Previous Topic:Nested Column Groups
Next Topic:Grid: Wrong height of header after changing font size
Goto Forum:
  


Current Time: Tue Oct 21 07:23:48 GMT 2014

Powered by FUDForum. Page generated in 0.01485 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software