Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrow Start from margin (Read 3000 times)
Sachin
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 85
Joined: Mar 14th, 2009
Arrow Start from margin
Apr 8th, 2009 at 9:09am
Print Post  
HI

i given diagram light behaviour proerty given as

Behavior="DrawLinks" 
the problem is when i click the mouse in diagramlite immediaely create the arrow in start point  means top of the diagram light control , i need if i select two objects then draw the arrow in two nodes only  i cannot draw any arrow  with out select the two objects (shapes)
how to  do?


another question is
i set it anchor point in control node
but when i am select anchor points (right and bottom ) go out of the shape please
let me know

     ContentControl cn = new ContentControl();
--taget is the my control adding this to contro node

ControlNode cn1 = new ControlNode(target, cn);

AnchorPattern apat1 = new AnchorPattern(new AnchorPoint[]{
new AnchorPoint(50, 0, true, true),
new AnchorPoint(120, 50, true, true),
new AnchorPoint(50, 120, true, true),
new AnchorPoint(0, 50, true, true)
});


  cn1.Bounds = rec;
               cn1.AnchorPattern = apat1;
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow Start from margin
Reply #1 - Apr 8th, 2009 at 11:28am
Print Post  
Hi,

AnchorPoint positions should be in the 0,100 range. They specify percents of the node width/height, and not pixel positions.

We'll add a AllowUnconnectedLinks property to let you stop drawing unconnected links; for now you could cancel that from the LinkCreating event.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow Start from margin
Reply #2 - Apr 8th, 2009 at 1:58pm
Print Post  
This version adds the Diagram.AllowUnconnectedLinks property:
https://mindfusion.eu/_beta/diaglite_allowunconnected.zip

Set it to false to allow drawing links only between nodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Sachin
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 85
Joined: Mar 14th, 2009
Re: Arrow Start from margin
Reply #3 - Apr 8th, 2009 at 3:08pm
Print Post  
HI

It is  workign fine Thanks a lot
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint