Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Hit test override for anchior pattern? (Read 1351 times)
j poz
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Nov 21st, 2012
Hit test override for anchior pattern?
Dec 17th, 2012 at 3:35pm
Print Post  
Is it possible to override the method that determines whether or not we should be allowed to drag/draw a connector from a shapenode's anchor point?

The problem is that when a user attempts to draw from an anchor point, and their cursor is merely 1 or 2 pixels below it, it doesn't register that they want to drag that node.

Rather than adding arbitrary padding to the entire node, I'd like to just override the hit method...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hit test override for anchior pattern?
Reply #1 - Dec 17th, 2012 at 6:21pm
Print Post  
You could use one of these behavior classes as a model:

http://mindfusion.eu/Forum/YaBB.pl?num=1282737732/1#1
http://mindfusion.eu/Forum/YaBB.pl?num=1250499561/7#7

If you need to allow drawing links from outside nodes, use the GetNodeAt(point, threshold) method to find the origin node.

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