Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ZTop doesnt work (Read 2563 times)
jmquinlan
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 67
Joined: Apr 2nd, 2009
ZTop doesnt work
May 11th, 2009 at 11:32am
Print Post  
hello,

I'm using ZTop on a newly created table node to try to bring it to the front. The location should place it smack bang ontop of a couple of container nodes.

eg.

containernode
{
     Containernode
    {
       TableNode1--->tablenode2
    }
}

I attempt to create a node which should place it near tablenode1 and tablenode 2. It appears behind the container nodes.

I call ZTop after its initialisation and it still ends up behind the containers.

regards

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ZTop doesnt work
Reply #1 - May 11th, 2009 at 11:54am
Print Post  
Hi,

Call it after the node has been added to the diagram:

node = new TableNode(...);
diagran.Nodes.Add(node);
node.ZTop();

It's kind of a standalone object before that and knows nothing about the diagram's Z order.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jmquinlan
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 67
Joined: Apr 2nd, 2009
Re: ZTop doesnt work
Reply #2 - May 11th, 2009 at 1:59pm
Print Post  
Hello,

It is being called after, I think I tracked it down to the container node was selected.

It seems that if you have a selected containernode above the table node you call ZTop on it will not move the table node forward.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ZTop doesnt work
Reply #3 - May 11th, 2009 at 2:05pm
Print Post  
I think the selection state shouldn't matter once you add the item, but that might be a refresh problem; what happens if you call diagram.Invalidate() after ZTop? You might also try using SelectionOnTop = false.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint