Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Event for container resized (when a node is moved) (Read 4382 times)
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Event for container resized (when a node is moved)
Jan 29th, 2009 at 6:57pm
Print Post  
Hi!

When a node is moved within a container, the container gets resized if necessary. I need to know how to catch this event. I tried using NodeModified on the container but it is not called.

NodeModified gets called for the node, so I can catch that and then if it has a container I can get its new size. However, it seems that the container's size has not been updated yet.

How can I get that?

Thank you,
Marie
« Last Edit: Feb 17th, 2009 at 8:41pm by marie »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Event for container resized (when a node is mo
Reply #1 - Jan 30th, 2009 at 4:54pm
Print Post  
Hi Marie,

Try this build of the 5.2 beta:
https://mindfusion.eu/_beta/fcnet52.zip

NodeModified is still raised only for the child node, but after updating container.Bounds.

Stoyan
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Event for container resized (when a node is mo
Reply #2 - Feb 3rd, 2009 at 8:32pm
Print Post  
Hi Stoyan!

Thanks a lot Smiley

Could you do the same for this.diagram.ContainerChildAdded and this.diagram.ContainerChildRemoved (update the container's size before calling those)?

Thanks again,
Marie
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Event for container resized (when a node is mo
Reply #3 - Feb 9th, 2009 at 1:53pm
Print Post  
Hi,

Did you forget about this post?

Thanks,
Marie
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Event for container resized (when a node is mo
Reply #4 - Feb 9th, 2009 at 2:03pm
Print Post  
Hi,

Nope - that's the first thing we'll do after the v5.2 release 8)

Stoyan
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Event for container resized (when a node is mo
Reply #5 - Feb 9th, 2009 at 2:36pm
Print Post  
Hi,

Thanks Smiley

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Event for container resized (when a node is mo
Reply #6 - Feb 16th, 2009 at 9:53am
Print Post  
Hi Marie,

The version from the PM page implements that.

Stoyan
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Event for container resized (when a node is mo
Reply #7 - Feb 17th, 2009 at 8:26pm
Print Post  
Hi Stoyan,

Thanks a lot! It works perfectly.

The version you sent me, is it tagged for my company? Does it include everything from the previous 5.2 release? Can I use it safely (distribute it to clients)?

Thanks,
Marie
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Event for container resized (when a node is mo
Reply #8 - Feb 17th, 2009 at 8:38pm
Print Post  
Hi Marie,

Yes, it includes everything from v5.2 and should be stable enough ...

Stoyan
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Event for container resized (when a node is mo
Reply #9 - Feb 17th, 2009 at 8:40pm
Print Post  
Perfect  Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint