Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link cannot be selected when another node is sendtoback (Read 1949 times)
Swagata
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Jul 25th, 2012
Link cannot be selected when another node is sendtoback
Jul 25th, 2012 at 10:07am
Print Post  
I have few nodes and connecting links. Now I add another node in shape of ellipse which covers 3 nodes and connecting 3 links. Ellipse node is on top. Now I send it to back by setting ZBottom(). So the 3 nodes and links comes to front. When I try to select any of the nodes, I am able to do so while if I want to select the 3 connecting links I am unable to do. Instead the sllipse node gets selected. Seems the link remains to ZBottom. I even tried to first set all the links in the diagram to ZTop() and then set the selected ellipse node to ZBottom() but still it does not work.
Below is the code:

public void SendToBack()
{
foreach (DiagramLink item in _diagram.Links)
item.ZTop();

foreach (var node in _diagram.Selection.Nodes.OfType<IOrderable>())
{
node.ZBottom();

foreach (DiagramLink link in (node as DiagramNode).GetAllLinks())
link.ZBottom();
}
}

In the image attached, I try to select link connecting 'cost of living' and 'FT' but ellipse node gets selected.

Any Help ? Thanks in advance
  

5.png ( 35 KB | 106 Downloads )
5.png
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link cannot be selected when another node is sendtoback
Reply #1 - Jul 25th, 2012 at 10:27am
Print Post  
Set HitTestPriority = ZOrder.

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


I Love MindFusion!

Posts: 4
Joined: Jul 25th, 2012
Re: Link cannot be selected when another node is sendtoback
Reply #2 - Jul 25th, 2012 at 10:32am
Print Post  
wow..thanks..it works
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint