Skip to main content


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 CampbellFriend
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: Fri Apr 26 05:57:26 GMT 2024

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

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

Back to the top