Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Scroll bar Problem-draw2d
Scroll bar Problem-draw2d [message #238308] Wed, 05 September 2007 03:49
Eclipse UserFriend
Originally posted by: abraham8331.gmail.com

Hi

I'm using draw2d to draw a flowchart.I tried to get the scroll
bars(both),they are visible but unable to drag.This is my code...

Shell shell = new Shell();
shell.open();
shell.setText("FlowDiagram");

LightweightSystem lws = new LightweightSystem(shell);


ScrollPane panel = new ScrollPane();
panel.setBounds(new Rectangle(0,0,200,100));
panel.getViewport().setBorder(new LineBorder());
panel.setBorder(new LineBorder());
panel.setSize(20, 30);
panel.setScrollBarVisibility(ScrollPane.ALWAYS);






final Figure SF = new Figure();
SF.setBorder(new LineBorder());



panel.setContents(SF);

lws.setContents(panel);

panel.setLayoutManager(new ScrollPaneLayout());
Previous Topic:Adding folders in outline view
Next Topic:Save the content of the view in an image file on disk
Goto Forum:
  


Current Time: Thu Nov 27 05:59:09 GMT 2014

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

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