Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Require link on front of the node (Read 3179 times)
ayushneema
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 23rd, 2009
Require link on front of the node
Sep 24th, 2009 at 3:00pm
Print Post  
Hi,
I have created an diagram that consist of node and the link. my problem is that when an link overlaps the node, i am unable to select link from the overlapped part.
so when i click on link in the overlapped part node gets selected while i want to select the link.
is there any way that make the link on front?
Thanks,
Ayush Neema.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Require link on front of the node
Reply #1 - Sep 24th, 2009 at 3:21pm
Print Post  
Set HitTestPriority = ZOrder.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
ayushneema
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 23rd, 2009
Re: Require link on front of the node
Reply #2 - Sep 29th, 2009 at 3:33pm
Print Post  
Hi stoyo,
setting this property works fine when i have single link overlap a single node.
But when there are two links overlap a single node, the behavior is unexpected as i select one link and other link gets selected.

i have send you the image through mail for reference.

Thanks
Ayush Neema
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Require link on front of the node
Reply #3 - Sep 29th, 2009 at 8:07pm
Print Post  
What LinkHitDistance value are you using? The hit-testing code returns the first link it finds within that distance, rather than enumerating all links and returning the closest one, so try setting this to a smaller value, such as 2-3 points.
  
Back to top
 
IP Logged
 
ayushneema
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 23rd, 2009
Re: Require link on front of the node
Reply #4 - Sep 30th, 2009 at 5:19am
Print Post  
Hi stoyo,
i set the
diagram.HitTestPriority = HitTestPriority.ZOrder;
This allow me to select a link that overlaps a node.

I am capturing diagram_LinkClicked and diagram_LinkDoubleClicked event. But problem is that when two link overlap a node, i am not getting the expected link in that event.
How and where i can specify the distance?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Require link on front of the node
Reply #5 - Sep 30th, 2009 at 10:51am
Print Post  
Set diagram.LinkHitDistance = 3;
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint