[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] How to remove scrollbars from FigureCanvas?

The FigureCanvas class uses default styles for the underlying control...
See the constructor of the class...

public FigureCanvas(Composite parent, LightweightSystem lws) {
 super(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.NO_REDRAW_RESIZE
|SWT.NO_BACKGROUND);
 this.lws = lws;
 lws.setControl(this);
 hook();
}

The figure canvas is instanciated by e.g. ScrollingGraphicalViewer...

But even if the scrollbars aren't neccessary they are visible  (and
disabled)

How can I remove the scrollbars?

Noice that if I create the control within a dialog and then resize the
dialog the scrollbars disappears...

How could I do that programatically?

Thanks for any help!

Honza