Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsScrolling programmatically
https://www.eclipse.org/forums/index.php/mv/msg/129247/399140/#msg_399140
Originally posted by: jockep.hotmail.com
I'd like to scroll ScrolledComposites programmatically (scroll up/down
using the arrow up/down keys), but using ScrollBar.setSelection(foo); only
moves the handle up and down, it doesn't scroll the content. I did a
search, and apparently there is a problem with this. Or has been, since
the posts I found regarding this were pretty old. I'm wondering if this is
still the case or if there's a way/workaround to accomplish this now?
/Jocke]]>2003-12-16T22:52:39-00:00Re: Scrolling programmatically
https://www.eclipse.org/forums/index.php/mv/msg/129247/399611/#msg_399611
/**
* Scrolls the content so that the specified point in the content is in the
top
* left corner. If no content has been set, nothing will occur.
*
* Negative values will be ignored. Values greater than the maximum scroll
* distance will result in scrolling to the end of the scrollbar.
*
* @param x the x coordinate of the content to appear in the top left corner
*
* @param y the y coordinate of the content to appear in the top left corner
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that
created the receiver</li>
* </ul>
*
* @since 2.0
*/
public void setOrigin(int x, int y)
"Joakim Persson" <jockep@hotmail.com> wrote in message
news:bro2bn$n3d$1@eclipse.org...
> I'd like to scroll ScrolledComposites programmatically (scroll up/down
> using the arrow up/down keys), but using ScrollBar.setSelection(foo); only
> moves the handle up and down, it doesn't scroll the content. I did a
> search, and apparently there is a problem with this. Or has been, since
> the posts I found regarding this were pretty old. I'm wondering if this is
> still the case or if there's a way/workaround to accomplish this now?
>
> /Jocke
>]]>Veronika Irvine2003-12-18T14:21:42-00:00Re: Scrolling programmatically
https://www.eclipse.org/forums/index.php/mv/msg/129247/400305/#msg_400305
Originally posted by: jockep.hotmail.com