Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Drawing Links - Creating Nodes (Read 3289 times)
matt.s
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Apr 3rd, 2008
Drawing Links - Creating Nodes
May 19th, 2008 at 4:38pm
Print Post  
Hi,

I currently have the behavior of my diagram set to DrawLinks.

When a user clicks on a node and starts dragging, the diagram starts to create a link. If the user 'drops' over another node a link is created between the two nodes.

This is great, but I'd really like something else to happen too; when the user clicks on a node and starts dragging, if they drop on the surface where there isn't a node I'd like the diagram to raise an event so that I can create a new node in that position.

I've tried messing round with different behavior types but can't seem to get this to work - Is this possible?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drawing Links - Creating Nodes
Reply #1 - May 20th, 2008 at 5:09am
Print Post  
Hi,

That's exactly what the SiteMap sample does. In short:

* enable AllowUnconnectedLinks to allow drawing a link without connecting it to a node
* handle LinkCreated
* create a node at the link end point location
* set the node as the link's Destination

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
matt.s
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Apr 3rd, 2008
Re: Drawing Links - Creating Nodes
Reply #2 - May 20th, 2008 at 1:05pm
Print Post  
Thanks Stoyan - that's solved it.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint