Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Horizontal scrollbar (Read 1705 times)
Plamen Boev
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Jul 28th, 2014
Horizontal scrollbar
Sep 29th, 2014 at 4:46pm
Print Post  
Hi,

I need to show the horizontal scroll bar of the diagram. It only shows the vertical one no matter that it's contents is larger to the right and is not visible.

I have set:
DiagramView1.ShowScrollbars = True
DiagramView1.ScrollBarProvider.CreateHorizontalScrollBar()
DiagramView1.ScrollBarProvider.CreateVerticalScrollBar()

What do I do wrong?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Horizontal scrollbar
Reply #1 - Sep 30th, 2014 at 7:09am
Print Post  
Hi,

ScrollBarProvider's methods are called automatically by DiagramView, and the horizontal scrollbar will get hidden if diagram.Bounds.Width pixel value is smaller than DiagramView.Width. If you create nodes programmatically and place them outside of diagram.Bounds, call diagram.ResizeToFitItems or set diagram.Bounds = diagram.GetContentBounds in the end. Set DiagramView.AutoResize to make the control grow automatically while users draw items interactively.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Plamen Boev
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Jul 28th, 2014
Re: Horizontal scrollbar
Reply #2 - Oct 1st, 2014 at 10:44am
Print Post  
Thank you, it works fine.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint