Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Adding Additional points on the links (Read 1091 times)
donalmeida
Junior Member
**
Offline


Yay...

Posts: 65
Joined: Oct 6th, 2009
Adding Additional points on the links
May 7th, 2010 at 3:30pm
Print Post  
We have a requirement to let the user dynamically add mote points on the links. How do we let the user select a location on the link using the mouse pointer and cause an additional point in the link at that position.
  

Don Almeida.
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Adding Additional points on the links
Reply #1 - May 7th, 2010 at 6:43pm
Print Post  
You could call GetLinkAt (e.MousePosition, 3, true, ref segmNum) in response to the LinkClicked event to get the index of the clicked segment, and then insert the point at the segmNum + 1 position in link.ControlPoints. This will work for Polylne links. For cascading links you might have to align the neighbor points after inserting a new point, and for Bezier links you must add three new points instead of just one in order to add a whole Bezier segment.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint