Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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:How do I scroll to an ExpandItem in an ExpandBar?
Goto Forum:
  


Current Time: Tue Jul 22 19:42:50 EDT 2025

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

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

Back to the top