Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic diagramView size (Read 4251 times)
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
diagramView size
May 10th, 2012 at 9:59am
Print Post  
Dear all.

          i want to re size the diagram view as per the screen size. kindly help.

by
Madhan

  

if you want something then go and grab it
Back to top
 
IP Logged
 
GoldyWang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 34
Joined: May 7th, 2012
Re: diagramView size
Reply #1 - May 10th, 2012 at 10:38am
Print Post  
I do not exactly catch what you want, but i think the DiagramView is a WinForm Control, you can resize it as normal winform control can.
you can:
diagramView.Size = new Size(1024,768); // to set fix size
or:
diagramView.Dock = DockStyle.Fill; // to auto-size
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: diagramView size
Reply #2 - May 10th, 2012 at 12:01pm
Print Post  
In addition to what GoldyWang said, you can find the screen size by calling SystemInformation.PrimaryMonitorSize. Apart from the DiagramView size, you'll probably also have to set diagram.Bounds. Since diagram.Bounds is measured in millimeters by default, you'll have to call DiagramView.ClientToDoc to convert the screen size to millimeters, or otherwise change MeasureUnit to Pixel.

I hope that helps,
Stoyan
« Last Edit: May 10th, 2012 at 1:15pm by Stoyo »  
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: diagramView size
Reply #3 - May 10th, 2012 at 3:55pm
Print Post  
Quote Modify Remove
hi,
  diagramView.Size = new Size(1024,768);  is not working for me. and diagramView.Dock = DockStyle.Fill;  is filling all the place.

i need to adjust the with
i used the following code also
  diagramView.Width = 1500;

but not working
  

mindfusion.JPG (Attachment deleted)

if you want something then go and grab it
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: diagramView size
Reply #4 - May 10th, 2012 at 4:24pm
Print Post  
If you mean you need the view to fill all available space on the form, setting DockStyle.Fill should do that. It won't cover the other controls on your form if you dock them too - set their Dock property respectively to Top/Left/Bottom for the toolbar, listbox and whatever the white control below the diagram view is.
  
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: diagramView size
Reply #5 - May 10th, 2012 at 4:44pm
Print Post  
ya,
i already set the Dock setting as bottom for that control..
if i use the dockstyle.fill then i can not see the horizontal scroll bar !!
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: diagramView size
Reply #6 - May 11th, 2012 at 5:44am
Print Post  
Quote:
if i use the dockstyle.fill then i can not see the horizontal scroll bar !!


The scrollbar range depends on the diagram size, so this means the view is larger than diagram.Bounds. Assign a larger rectangle to Bounds if you need the scrollbar to be initially visible.
  
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: diagramView size
Reply #7 - May 11th, 2012 at 6:02am
Print Post  
hi stoyo,

      i think i have not explain my requirement. i need to extend the with of the diagramview as per the screen size. kindly help
  

mindfusion_001.JPG (Attachment deleted)

if you want something then go and grab it
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: diagramView size
Reply #8 - May 11th, 2012 at 7:01am
Print Post  
sorry i find the issue..
i have set the diagram with in two places.... so it did n't get reflected..
thanks  Roll Eyes
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint