Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Container Node (Read 4734 times)
balajigcs
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 32
Joined: Aug 18th, 2008
Container Node
Sep 18th, 2008 at 4:48am
Print Post  
Hi,

   I am adding the node into the container and folded that container after that I am going to save that diagram in to xml format and once again load that xml file.. so loading the xml file is not done properly.. otherthan that all are saving and loading properly only..
Would you please help me how to rectify this problem...
  

Thanks & Regards,&&&&Balaji
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Container Node
Reply #1 - Sep 18th, 2008 at 7:04am
Print Post  
Hi,

I can't see anything wrong with that. Could you email the XML file to support@mindfusion.eu?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Container Node
Reply #2 - Sep 18th, 2008 at 10:50am
Print Post  
So you are using a class derived from ContainerNode? We'll investigate why this happens in the next few days. For the time being, override LoadFromXml and after calling base.LoadFromXml set item.Visible = !container.Folded for all contained items.
  
Back to top
 
IP Logged
 
balajigcs
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 32
Joined: Aug 18th, 2008
Re: Container Node
Reply #3 - Sep 19th, 2008 at 10:32am
Print Post  
Hi,

yes,I am deriving from containernode. did u get any idea how it is coming like this.

Thanks & Regards,
Balaji
  

Thanks & Regards,&&&&Balaji
Back to top
 
IP Logged
 
balajigcs
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 32
Joined: Aug 18th, 2008
Re: Container Node
Reply #4 - Sep 19th, 2008 at 10:35am
Print Post  
I have one doubt.. for containerNode having the events like..onNodeSizeChanged and  onNodeDroped.. In which MindFusion Version they are working..
  

Thanks & Regards,&&&&Balaji
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Container Node
Reply #5 - Sep 19th, 2008 at 11:45am
Print Post  
There are the ContainerChildAdded and NodeModified events, if that's what you are asking about.
  
Back to top
 
IP Logged
 
balajigcs
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 32
Joined: Aug 18th, 2008
Re: Container Node
Reply #6 - Sep 19th, 2008 at 12:41pm
Print Post  
no these are  the events..

ContainerNode node = new FPIContainerNode();

node.onNodeDroped += new NodeEventHandler(OnNodeAdded);
node.onNodeSizeChanged += new NodeValidationEventHandler(OnContNodeSizeChanged);
  

Thanks & Regards,&&&&Balaji
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Container Node
Reply #7 - Sep 19th, 2008 at 3:42pm
Print Post  
There have never been any events defined in the ContainerNode class. However there are OnChildModified and OnDropOver methods that you can override in your FPIContainerNode class, and there are the ContainerChildAdded and NodeModified events defined in Diagram.

Stoyan
  
Back to top
 
IP Logged
 
balajigcs
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 32
Joined: Aug 18th, 2008
Re: Container Node
Reply #8 - Sep 22nd, 2008 at 8:32am
Print Post  
Hi,

  In MinFusion samples FcDemo, we add nodes into the container and then folded the container then save the diagram into xml format. After that once again load that xml file then the container coming with folded,but the nodes in the container are showing outside.. once unfolded that container then its coming properly only...
So,please let me know how to solve this problem.
  

Thanks & Regards,&&&&Balaji
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Container Node
Reply #9 - Sep 22nd, 2008 at 12:49pm
Print Post  
Hi,

Our developer will look into this in a few days. If you can't wait, there are a couple of possible workarounds. As mentioned earlier, since you are deriving from  ContainerNode, you could override the LoadFromXml method and set item.Visible = !container.Folded for all contained items after calling the base class implementation. Another option is to loop over all nodes in the diagram after calling Diagram.LoadFromXml, and do the same if they are in a container.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Container Node
Reply #10 - Sep 23rd, 2008 at 10:27am
Print Post  
This version should set the visibility correctly:
https://mindfusion.eu/_temp/foldedctr.zip

Stoyan
  
Back to top
 
IP Logged
 
balajigcs
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 32
Joined: Aug 18th, 2008
Re: Container Node
Reply #11 - Sep 23rd, 2008 at 2:36pm
Print Post  
Hi,
  Actually I have the licenced version midfusion dlls.. how can i get the licenced latest version dlls.
  

Thanks & Regards,&&&&Balaji
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Container Node
Reply #12 - Sep 23rd, 2008 at 3:39pm
Print Post  
Email your order id to our support email address and we'll send you back the dlls.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint