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 #669896] Wed, 11 May 2011 21:22 Go to next message
SBS  is currently offline SBS
Messages: 57
Registered: January 2011
Member
If I have more expand items than fills the client area of the expand bar, how can I scroll to a particular item and put 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 tried getting the vertical scroll bar for the expand bar and setting the selection for it but the thumb moves to the correct position although the bar's contents do not scroll accordingly.

Is this a bug? What's the correct way of doing this?

Thanks,

-sbs
(no subject) [message #670071 is a reply to message #669896] Thu, 12 May 2011 10:44 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
Registered: July 2009
Senior Member
This is not currently implemented. The existing request for this is
https://bugs.eclipse.org/bugs/show_bug.cgi?id=243802 . I don't know of a
workaround to suggest.

Grant


"SBS" <forums-noreply@eclipse.org> wrote in message
news:iqfc8i$jot$1@news.eclipse.org...
> If I have more expand items than fills the client area of
> the expand bar, how can I scroll to a particular item and
> put 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 tried getting the vertical scroll bar for the expand
> bar and setting the selection for it but the thumb moves to
> the correct position although the bar's contents do not
> scroll accordingly.
>
> Is this a bug? What's the correct way of doing this?
>
> Thanks,
>
> -sbs
Previous Topic:Table Viewer - Can the extra padding on each table cell be removed
Next Topic:Table Viewer - Entering any character on the key board would produce a beep sound
Goto Forum:
  


Current Time: Fri Aug 22 09:56:53 EDT 2014

Powered by FUDForum. Page generated in 0.02681 seconds