Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic AttachToNode (Read 2039 times)
Joshua
Guest


AttachToNode
Aug 3rd, 2006 at 3:00am
Print Post  
NodeX.AttachTo(this, AttachToNode.TopRight | AttachToNode.TopLeft);

The above compiles but fails to attach NodeX to the left and right side of "this".  Is there away to attach both the left and right sides of a node without using the percentage option or handling the resize in the box modifying event??? I basically want NodeX to stretch horizontally not vertically. 

Cheers.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3348
Joined: Oct 19th, 2005
Re: AttachToNode
Reply #1 - Aug 3rd, 2006 at 7:03am
Print Post  
so you need something like the .NET controls' Anchor property? We can add this to the next release.
  
Back to top
 
IP Logged
 
Joshua
Guest


Re: AttachToNode
Reply #2 - Aug 3rd, 2006 at 8:57pm
Print Post  
That would be perfect  Grin
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: AttachToNode
Reply #3 - Aug 8th, 2006 at 10:55am
Print Post  
Hello there,

Our developers have created an initial implementation of that feature. If you wish to try it out, you can download the daily builds of the Flowchart.NET dlls here:

https://mindfusion.org/_temp/fcnetanchor.zip

The new AttachTo overloaded method can be used like this:

[code]
private void Form1_Load(object sender, System.EventArgs e)
{
Box box1 = fc.CreateBox(10, 10, 80, 80);
Box box2 = fc.CreateBox(20, 20, 60, 30);

box2.AttachTo(box1, GroupAnchorStyles.Left | GroupAnchorStyles.Right | GroupAnchorStyles.Top);
}
[/code]

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