Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to control moving a node (Read 1184 times)
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
How to control moving a node
Jun 30th, 2011 at 3:33am
Print Post  
I choosed a TableNode in a diagram then there are 6 small rectangles aroound the node. I noticed when I moved mouse in the rectangle of Caption I can move the node otherwise I can not.

My question is how to do this programmatically by myself ? Because I wan to define a custom node and need this feature to control my node to move.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to control moving a node
Reply #1 - Jun 30th, 2011 at 6:08am
Print Post  
If the built-in styles you can assign to the HandlesStyle property won't do, you could set it to Custom and handle the HitTestAdjustmentHandles event to implement your custom logic. Alternatively override the HitTestHandle method in the derived node class and set the handle ref argument to 8 if the mouse pointer is where the node should start moving.

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