Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic positioning the diagram (Read 2192 times)
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
positioning the diagram
Nov 13th, 2008 at 3:09pm
Print Post  
I have created linked nodes structure by using zoom functionality

But some how i am not able to position the diagram properly,
I mean sometimes my links goes outof upperbound,
sometimes shown properly.
I want the same digram should be place at fixed position even i do zoom (using mouse scroll) or zoomtorect, and also using mousUp event to
diagramView.ZoomToFit();

Code
Select All
  float posY = diagramView.Bounds.Height/2 ;
  float pos = 0;
  RectangleF bound = new RectangleF(pos, posY, 30, 20);
  ShapeNode baseNode = diagram.Factory.CreateShapeNode(bound);
  baseNode.Shape = Shapes.Ellipse;

  pos++;
foreach (DataRow dr in dtRelContacts.Rows)
            {
                ShapeNode node;


    node = diagram.Factory.CreateShapeNode(bound);


node.Bounds = new RectangleF(20 + pos * 40, posY, 30, 20);


    pos++;



}

diagramView.ZoomToFit();
 

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: positioning the diagram
Reply #1 - Nov 14th, 2008 at 8:43am
Print Post  
Our developer has tried this code but it worked fine. How exactly can we reproduce your problem?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint