Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Scroll bar Problem-draw2d
Scroll bar Problem-draw2d [message #238308] Tue, 04 September 2007 23:49
Eclipse User
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: Tue Jul 29 00:38:33 EDT 2014

Powered by FUDForum. Page generated in 0.04269 seconds