Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Hide Scrollbar from the compartment
Hide Scrollbar from the compartment [message #193618] Thu, 19 June 2008 06:41 Go to next message
Eclipse UserFriend
Originally posted by: gaurav_tas.rediffmail.com

Hi all,
I am using eclipse 3.3 and i am working on gmf.
In MindMap Example , when I drag the thread in compartment then
vertical and horizontal scrollbar is appearing in threadcompartment
figure.I want to remove this scrollbar from the compartment. please
suggest me How do I achieve this?

Thanks in advance


Regards
Gaurav Dubey
Re: Hide Scrollbar from the compartment [message #195748 is a reply to message #193618] Fri, 04 July 2008 02:24 Go to previous message
Eclipse UserFriend
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.AUTOMAT IC);
scrollPane.setHorizontalScrollBarVisibility(ScrollPane.NEVER );

Remove this line and add
scrollPane.setScrollBarVisibility(ScrollPane.NEVER);

I used the same and able to Hide scrollbar

Thanks
Anjali
Previous Topic:Initializing nodes on a diagram
Next Topic:Cannot delete connection when specified field in the property is filled in with content
Goto Forum:
  


Current Time: Sat Jul 05 11:59:50 EDT 2025

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

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

Back to the top