Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic distinguish between link draw and draging on a node (Read 1725 times)
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
distinguish between link draw and draging on a node
Sep 21st, 2019 at 7:13am
Print Post  
Hi,
Is there any way to distinguish on a node between dragging and creating links from that node.
I mean, with this user can know from where he can  click  to create  a link and from when he can click to drag that node. This time it is happening at same time. like when a nodes get selected, then one can drag/create a link and behavior is not so understandable because sometime I want to drag but it creates a link.  Please help me to achieve this.

Thanks in advance.
  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3379
Joined: Oct 19th, 2005
Re: distinguish between link draw and draging on a node
Reply #1 - Sep 21st, 2019 at 8:53am
Print Post  
Hi,

The mouse cursor changes to a move or resize arrow when it will be modifying a node, and to a hand when it will draw a link. You can let users move/resize nodes without selecting them first by setting the ModificationStart property to AutoHandles.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: distinguish between link draw and draging on a node
Reply #2 - Sep 21st, 2019 at 4:53pm
Print Post  
please elaborate it with some sample code.
  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3379
Joined: Oct 19th, 2005
Re: distinguish between link draw and draging on a node
Reply #3 - Sep 22nd, 2019 at 12:59pm
Print Post  
Code
Select All
var ModificationStart = MindFusion.Diagramming.ModificationStart;
diagram.setModificationStart(ModificationStart.AutoHandles);
 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint