Skip to main content



      Home
Home » Eclipse Projects » GEF » GEF: scrolling?
GEF: scrolling? [message #722875] Tue, 06 September 2011 23:21 Go to next message
Eclipse UserFriend
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 05:37 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 13:37:45 EDT 2025

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

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

Back to the top