How to remove scrollbars from FigureCanvas? [message #87538] |
Wed, 16 July 2003 07:41  |
Eclipse User |
|
|
|
Originally posted by: jan.odvarko.schemantix.com
Hi All!
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)
The question is - How can I remove the scrollbars?
Noice that if I create the control within a dialog and then resize the
dialog by mouse the scrollbars disappears...
How could I do that programatically?
Thanks for any help!
Honza
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08973 seconds