Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to increase width of diagramview (Read 2444 times)
ashar11
Junior Member
**
Offline


I Love MindFusion!

Posts: 56
Joined: Jun 29th, 2017
How to increase width of diagramview
Sep 25th, 2017 at 7:09am
Print Post  
Hi,

    I am facing an issue while increasing the width of diagramview, the maximum width it allows me is, 
    diagramView.Size = new System.Drawing.Size(793, 680);
   By increasing width more than 793 it removes the horizontal bar, why its not allowing more than (793) thanks

Regards,
Ashar 
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: How to increase width of diagramview
Reply #1 - Sep 25th, 2017 at 7:15am
Print Post  
Hi,

The scroll range depends on diagram.Bounds size, make it larger than the view and scrollbars will appear again. Call DiagramView.ClientToDoc method to convert from DiagramView's pixel size to diagram MeasureUnit (default millimeter) if necessary.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
ashar11
Junior Member
**
Offline


I Love MindFusion!

Posts: 56
Joined: Jun 29th, 2017
Re: How to increase width of diagramview
Reply #2 - Sep 25th, 2017 at 8:33am
Print Post  
Hi,
     I have tried by setting diagram.Bounds by setting it more than diagramview size after converting it to mm by using diagramView.ClientDoc ,its still not showing me horizontal bar can you please confirm me what i am doing wrong. Thanks
            //
            // diagramView
            // 
            diagramView.Size = new System.Drawing.Size(796, 680);
            
            //
            // diagram
            //
            diagram.Bounds = diagramView.ClientToDoc(diagramView.ClientRectangle);
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: How to increase width of diagramview
Reply #3 - Sep 25th, 2017 at 8:48am
Print Post  
That fits exactly the diagram's scroll range inside current viewport and does not need scrollbars. You should treat it as lower limit and set larger values than it if you want to ensure visible scrollbars. Alternatively set diagram's AutoResize property and scrollbars will appear eventually when the user draws nodes outside of current diagram's boundaries.
  
Back to top
 
IP Logged
 
ashar11
Junior Member
**
Offline


I Love MindFusion!

Posts: 56
Joined: Jun 29th, 2017
Re: How to increase width of diagramview
Reply #4 - Sep 25th, 2017 at 10:16am
Print Post  
Thanks now its working.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint