Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node movement requirement (Read 2449 times)
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Node movement requirement
Mar 23rd, 2009 at 12:08pm
Print Post  
Hi,

We have a node movement requirement like:

"We want to be able to move the node just by moving the mouse cursor on the node and dragging it to some other position. Right now what is happening is that we need to first select the node and then we would be able to move it, so it requires first a click and then mouse movement."

How to achieve above requirement.

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node movement requirement
Reply #1 - Mar 23rd, 2009 at 12:49pm
Print Post  
Hi,

Set ModificationStart = AutoHandles.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Node movement requirement
Reply #2 - Mar 25th, 2009 at 11:48am
Print Post  
Hi Stoyo,

Thanks for the reply.

We tried this and it is working fine but we have one issue now on mouseover nodes/links looks like selected we want this feature only when we drag node.

"We want to be able to move the node just by moving the mouse cursor on the node and dragging it to some other position. Right now what is happening is that we need to first select the node and then we would be able to move it, so it requires first a click and then mouse movement."

and we do not want mouseover selection. Please suggest.

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node movement requirement
Reply #3 - Mar 25th, 2009 at 3:06pm
Print Post  
You will have to use a custom BehaviorBase derived object. Return new InteractionState(node, Action.Modify, 8) from StartDraw when some node contains the point specified as argument.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Node movement requirement
Reply #4 - Mar 27th, 2009 at 7:20am
Print Post  
Thanks Stoyo,

A lot of time i get the suggestion to use custom BehaviorBase derived object, however i am not finding myself comfortable with it so could you please share some sample code in regard to the above requirement and that will also eventually help me to get handle on using custom behavior classes.

Thanks,
Anurodh
« Last Edit: Mar 27th, 2009 at 11:55am by anurodhora »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node movement requirement
Reply #5 - Mar 27th, 2009 at 2:22pm
Print Post  
Set ModificationStart back to SelectedOnly, and use custom behavior class like the one shown here -
http://mindfusion.eu/Forum/YaBB.pl?board=diaglite_disc;action=display;num=123566...

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