Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » How do I scroll to an ExpandItem in an ExpandBar?(Can't find a suitable method!)
icon5.gif  How do I scroll to an ExpandItem in an ExpandBar? [message #669897] Thu, 12 May 2011 01:27
SBS  is currently offline SBS Friend
Messages: 57
Registered: January 2011
Member
If I have more expand items than fills the client area of an expand bar, how can I scroll to a particular item and place it at the top of the client area? There doesn't appear to be an appropriate scrollTo() or makeVisible() method on either ExpandBar or ExpandItem so I am not sure what method I should be using.

I tried getting the expand bar's vertical scroll bar and setting its selection which works except that the bar's contents are not scrolled even though the scroll bar thumb moves to the correct position.

Is this a bug? What is the correct way of doing this?

Thanks,

-sbs
Previous Topic:Table Viewer - Can the extra padding on each table cell be removed
Next Topic:CheckboxTreeViewer , ViewersObservables.observeCheckedElements( )
Goto Forum:
  


Current Time: Fri Nov 21 19:28:06 GMT 2014

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

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