Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Automatic layout the ContainerNode (Read 8040 times)
sweetdeath
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Mar 16th, 2011
Re: Automatic layout the ContainerNode
Reply #15 - Mar 18th, 2011 at 1:39am
Print Post  
Hi,Stoyan. I have sent my diagram in xml file to you,if my approach have any problems,please tell me how to amend it.
Thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Automatic layout the ContainerNode
Reply #16 - Mar 18th, 2011 at 8:50am
Print Post  
Hi,

Folded containers did not differentiate between child nodes and attached nodes and that lead to hiding the links. Please try that with this version:
https://mindfusion.eu/_beta/fcnet562.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sweetdeath
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Mar 16th, 2011
Re: Automatic layout the ContainerNode
Reply #17 - Mar 21st, 2011 at 9:37am
Print Post  
  Hi,Stoyan.Your new version is useful.Now, all group would move when I am moving or draging the containers.
  I have another question to ask you.Suppose a container contains several tables.How can I layout all the containers automatically and
orderly after user triggerring the "ContainerFolded" or "ContainerUnfolded" event?
  My solution is rearrange all containers after "ContainerFolded" and "ContainerUnfolded" event.However,the result doesn't unsatisfactory.
triggerring the "ContainerFolded" or "ContainerUnfolded" event,the container would move to other corner of the screen,which is far away
from other containers.Yhe containers in the DEMO deal with it well.How can I solve it?
  Thanks a lot!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Automatic layout the ContainerNode
Reply #18 - Mar 21st, 2011 at 1:09pm
Print Post  
Hi,

The demo does not run any layout method when folding and unfolding containers. However all containers are expanded initially, and having that space reserved for them they do not overlap other nodes when folded and unfolded again.

If you are still using TreeLayout, try setting the TreeLayout.Root property to the parent of the container for which the event is raised. Then TreeLayot should rearrange just the tree branch that contains this container and it should remain close to its initial position.

Alternatively, save the difference between the container's position and [ScrollX,ScrollY], and after running the layout set [ScrollX,ScrollY] to the new position of the container minus the saved difference.

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