Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF: scrolling?
GEF: scrolling? [message #722875] Wed, 07 September 2011 03:21 Go to next message
Andy Mising name is currently offline Andy Mising nameFriend
Messages: 4
Registered: August 2010
Location: Minnesota
Junior Member
How do I manually scroll a scrollPane during a certain event.

I want to be able to scroll for mouse and other key events?

Would appreciate any right direction. Smile
Re: GEF: scrolling? [message #723731 is a reply to message #722875] Fri, 09 September 2011 09:37 Go to previous message
Nagesh Y J is currently offline Nagesh Y JFriend
Messages: 11
Registered: July 2009
Junior Member
Hi Andy,
You can get scrollbar from your editor reference like below,

GraphicalViewer graphicalViewer = myEditor.getViewer();
((FigureCanvas) graphicalViewer.getControl()).getHorizontalBar();

You can set value in setSelection(int) function will do the scrolling.

Previous Topic:cut , copy paste in gef
Next Topic:problems view in gef
Goto Forum:

Current Time: Thu Oct 28 09:18:32 GMT 2021

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

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

Back to the top