Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) NodeDoubleClicked fired in wrong place (Read 4762 times)
Jally
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Apr 28th, 2009
NodeDoubleClicked fired in wrong place
Apr 28th, 2009 at 3:49pm
Print Post  
When I clicked the selected Node and then click the Diagram quickly the NodeDoubleClicked  fired.I don't want to fire the NodeDoubleClicked outside the selected node,How can I do that?Thanks
  
Back to top
 
IP Logged
 
hansoft123
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Apr 28th, 2009
Re: NodeDoubleClicked fired in wrong place
Reply #1 - Apr 28th, 2009 at 5:19pm
Print Post  
i also have the same problem
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeDoubleClicked fired in wrong place
Reply #2 - Apr 30th, 2009 at 3:13pm
Print Post  
  
Back to top
 
IP Logged
 
Jally
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Apr 28th, 2009
Re: NodeDoubleClicked fired in wrong place
Reply #3 - May 1st, 2009 at 2:56am
Print Post  
Yes.
But now In this version ,How can I drag the ContainerNode's Children without locked it.
Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeDoubleClicked fired in wrong place
Reply #4 - May 1st, 2009 at 8:18am
Print Post  
Hi,

What do you mean by locked? By the way, this version automatically adds or removes child nodes when the user drags them; you do not need to do call Children.Add or Remove anymore in response to NodeModified. If you prefer to handle that yourself, we'll add some property to disable the automatic functionality.

Stoyan
  
Back to top
 
IP Logged
 
Jally
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Apr 28th, 2009
Re: NodeDoubleClicked fired in wrong place
Reply #5 - May 1st, 2009 at 12:53pm
Print Post  
Yes,
but I mean that the child nodes can't be dragged outside the container even if I set "container.Locked=true";
I can only drag the child nodes with the container.
thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeDoubleClicked fired in wrong place
Reply #6 - May 4th, 2009 at 9:17am
Print Post  
I can't reproduce this with the v1.0.3 beta. Do you mean you can't select the child nodes at all, or you can select them, but can't drag them after that? Could you email to support@mindfusion.eu the init code for the diagram and newly created nodes, and the code of any event handlers related to node movement?

Stoyan
  
Back to top
 
IP Logged
 
Jally
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Apr 28th, 2009
Re: NodeDoubleClicked fired in wrong place
Reply #7 - May 4th, 2009 at 7:44pm
Print Post  
Just like that:
ShapeNode shapeNode1 = diagram.Factory.CreateShapeNode(new Point(10, 10), new Size(90, 90), Shapes.Rectangle);
ShapeNode shapeNode2 = diagram.Factory.CreateShapeNode(new Point(100, 100), new Size(90, 90), Shapes.Rectangle);
ContainerNode container = diagram.Factory.CreateContainerNode(0, 0, 200, 200);
container.Children.Add(shapeNode1);

I can't drag the shapeNode1 outside the container,and after I drag the shapeNode2 into the container,the shapeNode2 can't be draged out either.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeDoubleClicked fired in wrong place
Reply #8 - May 5th, 2009 at 8:09am
Print Post  
Ok, we have reproduced it now. We'll try to upload a fixed version later today.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeDoubleClicked fired in wrong place
Reply #9 - May 5th, 2009 at 3:40pm
Print Post  
containers should work correctly in this version:
https://mindfusion.eu/_beta/DiagramLite103.zip
  
Back to top
 
IP Logged
 
Jally
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Apr 28th, 2009
Re: NodeDoubleClicked fired in wrong place
Reply #10 - May 5th, 2009 at 6:21pm
Print Post  
Great!

Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint