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] Wed, 11 May 2011 21:27
SBS  is currently offline SBS
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: Sat Aug 30 22:30:23 EDT 2014

Powered by FUDForum. Page generated in 0.01492 seconds