[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Hide Scrollbar from the compartment
|
Hi Gaurav,
You can hide the vertical and Horizontal scrrollbar. For this what
u have to do , in org.eclipse.gmf.runtime.diagram.ui.figures packege there
is Shapecompartmentfigure and ResizableCompartmentfigure class.
In Shapecompartmentfigure's configurefigure() method there is line
scrollPane.setScrollBarVisibility(ScrollPane.AUTOMATIC);
remove this line and add
scrollPane.setScrollBarVisibility(ScrollPane.NEVER);
And in ResizableCompartmentfigure's AnimatableScrollPane() method there
is line
scrollPane.setVerticalScrollBarVisibility(ScrollPane.AUTOMATIC);
scrollPane.setHorizontalScrollBarVisibility(ScrollPane.NEVER);
Remove this line and add
scrollPane.setScrollBarVisibility(ScrollPane.NEVER);
I used the same and able to Hide scrollbar
Thanks
Anjali