Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to combine several diagramitem (Read 2365 times)
ncepu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 25
Joined: Mar 5th, 2012
How to combine several diagramitem
May 14th, 2012 at 7:16am
Print Post  
issue:How to combine several diagramitems(diagramnodes and diagramlinks),and I can ResizeRotateCopyPaste the combination like doing them on the shapenode。The function like Microsoft visio’s!
Thank you in advance!
  
Back to top
 
IP Logged
 
GoldyWang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 34
Joined: May 7th, 2012
Re: How to combine several diagramitem
Reply #1 - May 14th, 2012 at 7:28am
Print Post  
Hi,
Group function can do it, I just do it today:
the code such as: ShapeNode.Attach(...)

this is what i am coding now..

public class TPlace : ShapeNode
{
public TPlace(Diagram parent)
: base(parent)
{
this.Shape = CreateShape();
}

public void AddToken(int count)
{
......
TToken tk = new TToken(this.Parent); // ShapeNode derived
TDiagram diagram = (TDiagram)this.Parent;
diagram.AddNode(tk);
tk.AttachTo(this, AttachToNode.TopCenter); // *** the ShapeNode-Place and the ShapeNode-token be 'grouped togather' and can be access as whole interactively.
Tokens.Add(tk);
.....
}


  
Back to top
 
IP Logged
 
GoldyWang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 34
Joined: May 7th, 2012
Re: How to combine several diagramitem
Reply #2 - May 14th, 2012 at 7:53am
Print Post  
i try the feature of attached shapes.
wu..
mindfushion can group the nodes and move togather the attached nodes as whole, but, it seems can not scale/magnify them togather.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to combine several diagramitem
Reply #3 - May 14th, 2012 at 11:35am
Print Post  
The attached nodes will resize together with the master node if you use the AttachTo(percents) overload.
  
Back to top
 
IP Logged
 
ncepu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 25
Joined: Mar 5th, 2012
Re: How to combine several diagramitem
Reply #4 - May 14th, 2012 at 12:18pm
Print Post  
Stoyo,could you introduce it in detail,I am a newble.How to implement the visio‘s combination.
e.g. When I select several shapenodes and links,and click combination menubutton,then these nodes and links combinate together When move or resize it.And when the combination is selected,I click the split menubutton,these nodes and links are  seperated.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to combine several diagramitem
Reply #5 - May 15th, 2012 at 6:17am
Print Post  
Hi,

Child nodes in a group will resize automatically with their master node if you use the AttachTo(node, percents ...) override. Full group rotation is not supported yet; we have just implemented it in WPF (http://mindfusion.eu/Forum/YaBB.pl?num=1336392380) and will port it to WinForms soon.

At this time links can only be the master items in a group. If you need them to scale or rotate with the rest of the group items, you will have to implement this by setting their ControlPoints from the master node's NodeModifying event.

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