Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Host control inside a node (Read 1761 times)
Kortexito
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Jun 6th, 2007
Host control inside a node
Oct 31st, 2007 at 7:03am
Print Post  
Hi,

Is it possible to host a control inside a _specific_ area of a node.

What I want to do is to have a standard FC node with a few textboxes and comboboxes inside. Something like TableNode but with more freedom of controls locating degree.

It is possible with FlowChart? Perhaps I've underestimated abilities of TableNode or ControlHost?

Thanks and best regards.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Host control inside a node
Reply #1 - Oct 31st, 2007 at 8:14am
Print Post  
Hi,

You could create a group of a ShapeNode and few ControlNodes, e.g.

Code
Select All
ShapeNode container = diagram.Factory.CreateShapeNode(
	20, 20, 50, 55, Shapes.Rectangle);
container.HandlesStyle = HandlesStyle.MoveOnly;

ControlNode control1 = new ControlNode(diagramView, new Button());
control1.Bounds = new RectangleF(25, 25, 40, 10);
diagram.Nodes.Add(control1);

ControlNode control2 = new ControlNode(diagramView, new RichTextBox());
control2.Bounds = new RectangleF(25, 40, 40, 30);
diagram.Nodes.Add(control2);

control1.AttachTo(container, AttachToNode.TopLeft);
control2.AttachTo(container, AttachToNode.TopLeft);
 



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


I love YaBB 1G - SP1!

Posts: 8
Joined: Sep 18th, 2007
Re: Host control inside a node
Reply #2 - Nov 5th, 2007 at 4:24pm
Print Post  
Okay how about this one.. Can you embed controls within the cells of a table?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Host control inside a node
Reply #3 - Nov 5th, 2007 at 7:02pm
Print Post  
This has already been requested by several of our users, and we are going to implement it in one of the 5.0.X updates. For now you might implement something similar as shown in the InteractiveTables sample project, or by inheriting from TableNode and managing a list of ControlNodes in your derived class.

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