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 name
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 J
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.

Regards,
Nagesh
Previous Topic:Draw2D Label preferred size
Next Topic:Layered Pane problem
Goto Forum:
  


Current Time: Sat Sep 20 14:02:05 GMT 2014

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

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