Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Require Node at front (Read 1668 times)
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Require Node at front
Nov 10th, 2009 at 10:25am
Print Post  
Hi Stoyo,

We have some overlapped nodes in our diagram.
Suppose node1 is partially behind the node2, now if I click on node1 it gets selected.
I want that it should select but it should also bring in front i.e. now node2 should behind the node1.

Note- I have tried with ZTop property and it was working as expected, but due to this we were facing many problems because at some places we are doing something with the ZIndex value. Is there any other way to achieve this?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Require Node at front
Reply #1 - Nov 10th, 2009 at 11:14am
Print Post  
Changing the ZIndex value is the only way to do that.

Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Require Node at front
Reply #2 - Dec 3rd, 2009 at 9:17am
Print Post  
Hi Stoyan,

We have set node.ZTop() to bring it in front but at some places we are getting some problem.

Can we change zIndex of both nodes in selection change event so that we can set zTop for newer one and decrease zIndex for previous selected node?

How to get previous selected nodes?


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Require Node at front
Reply #3 - Dec 3rd, 2009 at 11:51am
Print Post  
Handle the NodeDeselected event to detect the previously selected node.

If you are using multiple selection and prefer to process all nodes together in a batch, you might save a copy of Selection.Nodes each time SelectionChanged is raised; before cloning it, loop over the already saved collection to find out which were the previously selected nodes.

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