Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to hide the scroll bar of the diagramView? (Read 1344 times)
webdev
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Nov 8th, 2012
how to hide the scroll bar of the diagramView?
Nov 19th, 2012 at 4:30am
Print Post  
any properties?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to hide the scroll bar of the diagramView?
Reply #1 - Nov 19th, 2012 at 7:39am
Print Post  
There is the DiagramView.ShowScrollbars property but it works only in ImageMap and Canvas modes. If you need to hide scrollbars in Java mode, try this work-around:

Code
Select All
function onAppletStarted()   // AppletStartedScript handler
{
	var scriptHelper = <%= diagramView.AppletElement %>.getScriptHelper();
	var view = <%= diagramView.AppletElement %>.getDiagramView();
	var nullSize = scriptHelper.createSize(0, 0);
	var scrollPane = view.getParent().getParent();
	scrollPane.getVerticalScrollBar().setPreferredSize(nullSize);
	scrollPane.getHorizontalScrollBar().setPreferredSize(nullSize);
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint