AD
Administrator
Syncfusion Team
June 8, 2006 05:20 AM UTC
Hi Nick,
I am sorry about this delay in responding. Kindly refer the Samples/In Depth/DiagramBuilder sample which will give you an idea about how to create a new form that has the same MDI parent form. Referring to the Sample''s MainForm class File/New (biFileNew_Click method) function will show you about what you are looking for.
Please let me know if you have any further queries regarding this issue. We will be glad to assist you.
Thank you for your interest in Syncfusion products.
Regards,
Meera.
NG
Nick Gardner
June 8, 2006 07:39 AM UTC
Hi Meera,
I know how to create a new MDI parent by referencing the parent form. What I need to do is get to the containing form from a symbol. Is this possible?
I.e. given an instance of Syncfusion.Windows.Forms.Diagram.Symbol, is it possible to get from that instance to the form contains it (provided it is contained within a form), e.g.
Syncfusion.Windows.Forms.Diagram.Symbol s = new Syncfusion.Windows.Forms.Diagram.Symbol ();
// Insert the event node into the diagram.
InsertNodesCmd nodeInsCmd = new InsertNodesCmd ();
nodeInsCmd.Nodes.Add (node.symbol);
nodeInsCmd.Location = new PointF (x, y);
diagram.Controller.ExecuteCommand (nodeInsCmd);
// Now I want to get to the form from the symbol (I know this code deosn''t exist but is there a way to do this?)
Form f = s.Model.Diagram.ContainingForm;
NG
Nick Gardner
June 13, 2006 04:12 PM UTC
Any update?