Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem selecting Link inside ContainerNode (Read 1517 times)
Viev
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 15
Location: Australia
Joined: Jan 3rd, 2015
Problem selecting Link inside ContainerNode
Feb 6th, 2015 at 5:49am
Print Post  
Hi all,

I have a problem selecting a Link inside a ContainerNode.
The ContainerNode is selected instead of the link.

e.g. On one windows form the following works fine, on another windows form testing inside DiagramView.MouseUp returns different results:

Dim loNode As DiagramNode
loPoint = Diagram.PixelToUnit(e.Location)
loObject = Diagram.GetItemAt(loPoint, False)

Inside my first form, the above will return the Link clicked on to loObject.

Inside my second form, the above will return the ContainerNode that the Link is inside of.

I don't know what I'm missing. I've tried setting ZTop to the Link and ZBottom to the ContainerNode. I've searched, unsuccessfully for a member of Diagram, or DiagramView that will select links before other DiagramNodes (unless I missed something).

Any ideas most welcome. At the end of the day I would like to select a Link inside a ContainerNode.

kind regards
V
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem selecting Link inside ContainerNode
Reply #1 - Feb 6th, 2015 at 6:53am
Print Post  
Set the Diagram.HitTestPriority property.

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