Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic link above the container node is not clickable (Read 494 times)
Nobu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Nov 27th, 2023
link above the container node is not clickable
Mar 9th, 2024 at 2:23pm
Print Post  
When I click on the link, the ContainerNode is selected.
Is there a way to click on a link in a ContainerNode?

Is the only way to achieve this with the following code?
Code
Select All
private void diagram1_NodeClicked(object sender, NodeEventArgs e)
{
	Log(sender,"NodeClicked");
	if (e.Node is ContainerNode)
	{
        var link = diagram1.GetLinkAt(e.MousePosition, 1.0f);
        if(link != null)
        {
            if(Control.ModifierKeys == Keys.None)
            {
				diagram1.Selection.Clear();
            }
            link.Selected = true;
        }
    }
}
 

  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3253
Joined: Oct 19th, 2005
Re: link above the container node is not clickable
Reply #1 - Mar 9th, 2024 at 3:13pm
Print Post  
Try setting diagram.HitTestPriority = ZOrder;

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Nobu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Nov 27th, 2023
Re: link above the container node is not clickable
Reply #2 - Mar 9th, 2024 at 3:45pm
Print Post  
I was able to do it!

Regards,
Nobu
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint