GETN_BEGIN_BRANCH
Name
GETN_BEGIN_BRANCH
Declaration
#define GETN_BEGIN_BRANCH(_NODE_NAME, _NODE_LABEL) _tmpSubNode = _tmpNode.AddNode(#_NODE_NAME, TRGP_BRANCH);TREE_ADD_LABEL(_NODE_LABEL);TreeNode _tmSave_##_NODE_NAME = _tmpNode; _tmpNode = _tmpSubNode;
Remark
GETN_BEGIN_BRANCH creates a tree subbranch in the dialogbox.
All GETN control with GETN prefix can be added into the subbranch between GETN_BEGIN_BRANCH and GETN_END_BRANCH.
Parameters
- _NODE_NAME
- [input] the name of the new node to be added to the tree
- _NODE_LABEL
- [input] the string value to show as the node name in the dialogbox
Return
Examples
EX1
#include <GetNbox.h>
void GETN_BEGIN_BRANCH_ex1()
{
GETN_TREE(testTree)
GETN_CHECK(FitAllCurves, "Fit All Curves", 0)
GETN_BEGIN_BRANCH(Fit, "Fitting Options")//Match GETN_END_BRANCH
GETN_OPTION_BRANCH(GETNBRANCH_OPEN) //open the branch, on showing
GETN_CHECK(FixIntercept, "Fix Intercept", 0)
GETN_CHECK(FixSlope, "Fix Slope", 0)
GETN_END_BRANCH(Fit) //Match GETN_BEGIN_BRANCH
GETN_NUM(Points, "Points", 20)
if(GetNBox(testTree, NULL, NULL, NULL, NULL))
out_tree(testTree);
}
See Also
GETN_OPTION_BRANCH, GETN_END_BRANCH
header to Include
GetNbox.h
Reference
|