Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Require Link at Backside of the node (Read 3118 times)
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Require Link at Backside of the node
Oct 23rd, 2009 at 3:11pm
Print Post  
Hi Stoyan,

In our application we have some ShapeNodes and Links. We want,

1). Link should always behind the node, i.e. if there are three nodes and a link from node1 to node3 and node is in between these two nodes than link should not visible in front on node2, it should come from behind the node2.

2). we are using
node.EnabledHandles = AdjustmentHandles.Move;
node.HandlesStyle = HandlesStyle.Custom;

When we select node using mouse click, mouse cursor gets change to cross cursor. We want a normal arrow cursor in this case too, we never want cross cursor. What change we need to make to achieve this?


Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Require Link at Backside of the node
Reply #1 - Oct 24th, 2009 at 9:06am
Print Post  
Hi,

1) Try setting ZIndex of links to 0 when they are created. You might also have to set SelectionOnTop = false.

2) If you are seeing the MoveCursor, which is set to Cursors.SizeAll by default, you could set diagram.MoveCursor = Cursors.Arrow. If you don't want to use any of the context-dependent cursors, set diagram.OverrideCursor = Cursors.Arrow.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Require Link at Backside of the node
Reply #2 - Oct 24th, 2009 at 10:18am
Print Post  
Hi Stoyan,

Thanks for the quick response.

1) We have already set ZIndex of links to 0 and we tried with SelectionOnTop = false, but we are not getting the same which we wants. We want to display the node in front of link. If link and node intersects each other than in this condition node should display to user and link should be at back side of the node and that portion of link which is covered by node should not visible to user. i hope now you understand the requirement.

2) Thanks for this suggestion, it is working as expected.


Regards,
Anshul
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Require Link at Backside of the node
Reply #3 - Oct 26th, 2009 at 6:36am
Print Post  
Hi Stoyan,
Any update for the first query?

Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Require Link at Backside of the node
Reply #4 - Oct 26th, 2009 at 11:50am
Print Post  
Check if you are not setting the node's ZIndex to 0 too at some point. It should also have a non-transparent brush set, otherwise the link will still be visible behind it.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Require Link at Backside of the node
Reply #5 - Oct 27th, 2009 at 7:19am
Print Post  
Set ZIndex after the link is added to the diagram, e.g. in the sample application call the InitLink method after Links.Add:

diagram.Links.Add(link1);
InitLinks(link1);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Require Link at Backside of the node
Reply #6 - Oct 27th, 2009 at 9:02am
Print Post  
Thanks Stoyan Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint