hi
i am trying to use the express edition and using code i found from here to try and get it to work
class blah
{
private String fileToLoad;
private GoView goView1 = new GoView();
private GoXmlBindingTransformer tr;
private GoDocument doc;
private GoXmlReader rdr;
public blah(GoView view)
{
this.goView1 = view;
doc = goView1.Document;
fileToLoad = "testing.xml";
}
public void GenerateTree()
{
goView1.Document.ValidCycle = GoDocumentValidCycle.DestinationTree;
goView1.NewGoLink.ToArrow = true;
GoBasicNode n = new GoBasicNode();
n.Editable = false;
n.Selectable = true;
n.LabelSpot = GoObject.Middle;
n.Text = "";
n.Shape = new GoRoundedRectangle();
tr = new GoXmlBindingTransformer("node", n);
tr.TreeStructured = true;
tr.TreeLinkPrototype = new GoLink();
tr.TreeLinksToChildren = true;
n.Label.Multiline = true;
tr.AddBinding("label", "Text");
//Doc = GoView1.Document;
rdr = new GoXmlReader();
rdr.AddTransformer(tr);
rdr.RootObject = goView1.Document;
using (StreamReader file = new StreamReader(fileToLoad))
{
rdr.Consume(file);
}
goView1.AllowResize = true;
Size dispSize = goView1.DisplayRectangle.Size;
}
}
the thing is it just dumps all of the nodes in the top left with no spacing - why is this and how can it be fixed? thanks