Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Dragging Nodes (Read 2126 times)
Freizeitsoldat
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: May 10th, 2009
Dragging Nodes
Feb 8th, 2010 at 2:35pm
Print Post  
Hi,

is there any event raised when i´m dragging a node in my flowchart?

I need information about the node beyond the dragged node and i need the relative position. (My goal is to sort swimlanes. If i drag a swimlane more than 50% over another lane there should be a new order of the given swimlanes)

Thank you,
Alex
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Dragging Nodes
Reply #1 - Feb 8th, 2010 at 2:42pm
Print Post  
Hi,

Try doing that from the nodeModified or nodeModifying handler.

Stoyan
  
Back to top
 
IP Logged
 
Freizeitsoldat
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: May 10th, 2009
Re: Dragging Nodes
Reply #2 - Feb 8th, 2010 at 3:09pm
Print Post  
Thank you,

but which method can i use to get the node where my modifyied node is dragged over? (Like node.getNodeDraggedOver...() )

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Dragging Nodes
Reply #3 - Feb 8th, 2010 at 3:23pm
Print Post  
You can use the getNodeAt overload that takes an "excludeSelected" parameter, so that getNodeAt ignores the dragged node while traversing the Z order.

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