Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic question about Cantainer node , scroll viewer and (Read 3773 times)
bink
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Oct 28th, 2010
question about Cantainer node , scroll viewer and
Nov 2nd, 2010 at 8:28am
Print Post  
Hi,

Im trying to build our diagram solution using diagramlite.  I really like the way that you design this utility.

Just 3 question now:
1. Im using ContainerNodes at the moment, but when I tried to Layout the diagram. It doesn't layout the subitems along with the parent items. Is there a way that I can make this happen?  What I wanna achieve is when we move the parent item, its child item will move as well and keep its relative position.

2.I've put the diagram in a scroll viewer. When I move a diagram right or down, it will extend the scroll bar will show up, but it doesn't happen when we move the diagram to the left boundary or the upside boundary. Is there a way I can do this?

3. I find the ancher positions does not appear in the position I want. Is there a way I can manipulate that?


Regards
Bill
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: question about Cantainer node , scroll viewer
Reply #1 - Nov 2nd, 2010 at 8:36am
Print Post  
Hi,

1. Check the sample code here, and try different layout classes for inner / outer layout to see what combinations will work better for your diagrams:
http://mindfusion.eu/Forum/YaBB.pl?board=diaglite_disc;action=display;num=128649...

2. Set AutoResize = AllDirections.

3. You can create custom AnchorPattern objects with your own point coordinates, and assign them to nodes' AnchorPattern property. Anchor points are specified as percents of the node width and height.

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


I love YaBB 1G - SP1!

Posts: 18
Joined: Oct 28th, 2010
Re: question about Cantainer node , scroll viewer
Reply #2 - Nov 2nd, 2010 at 8:42am
Print Post  
Thanks Stoyan.  I will try it tomorrow.

I've talked to my manager and buy the license soon.


Cheers
Bill
  
Back to top
 
IP Logged
 
bink
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Oct 28th, 2010
Re: question about Cantainer node , scroll viewer
Reply #3 - Nov 3rd, 2010 at 1:13am
Print Post  
Hi Stoyan,

I tried all your suggestions. They all works but with a few new issues:

1. For my 2nd question, it works, but as I move items to the right, the Items seemed moving much faster than I expected.  Definitely not the same speed as I move items to the right.  Is there anything I can do with this one?

2. For the anchors, The pattern worked, but there is a slight margin at the bottom.  How can I adjust this one?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: question about Cantainer node , scroll viewer
Reply #4 - Nov 3rd, 2010 at 7:30am
Print Post  
Hi,

1. Does it happen always, or only if the diagram is auto-resizing at that time? In the former case the auto-resize speed might be added to the auto-scroll speed. Our developer will have to check this; perhaps you could disable automatic resizing to the left meanwhile and instead resize diagram.Bounds in response to the NodeModifying/Creating events.

2. What kind of margin are you seeing - could you email an image or a test project showing that to support@mindfusion.eu?

Stoyan
  
Back to top
 
IP Logged
 
bink
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Oct 28th, 2010
Re: question about Cantainer node , scroll viewer
Reply #5 - Dec 2nd, 2010 at 7:03am
Print Post  
Thanks for your reply, Stoyan.

I manage to solve the problem by resizing to fit the diagram as user move the diagram node.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint