Developer

Quick Start

Node may be created by calling Add method of INxFormNodeList.

Every node class include ChildNodes property of this type. Control's TNextForm6 class also include Nodes property of same type suitable for operating with top-level nodes.

Adding top level nodes


At least one top-level node must be added. Top-level nodes are painted differently than other nodes, and some properties such as Clearing or Width are ignored for this kind of nodes.


Example:

var ANode: TNxStaticFormNode6; begin ANode := NextForm61.Nodes.Add(TNxStaticFormNode6) as TNxStaticFormNode6;
Add method create node of specified type and return object of INxFormNode type.

Node may be customised now:

ANode.TextBefore := 'Settings';

Adding new node


As noted above, every node include ChildNodes property too. To add one child node inside existing node, write:

NextForm61.Nodes[3].ChildNodes.Add(TNxStaticFormNode6);
If your node is referenced by variable, write:

ANode: TNxStaticFormNode6; ... ANode.ChildNodes.Add(TNxStaticFormNode6);

See also