2.3.1.103 TREE_ADD_LABEL


Name

TREE_ADD_LABEL

Declaration

#define TREE_ADD_LABEL(_NODE_LABEL)	_tmpSubNode.SetAttribute(STR_LABEL_ATTRIB, _NODE_LABEL)

Remark

This macro use to set the GetN_Box control's label, it use following the control's marco,

can not use to set GETN_BOX,GETN_TREE label.

Parameters

_NODE_LABEL
[input] the string will be set the control's label

Return

Examples

EX1

#include <GetNBox.h>
void TREE_ADD_LABEL_ex1()
{
    GETN_TREE(testTree)
    GETN_COMBO(Order1,"Polynomial Order1", 2, "2|3|4|5|6")
    GETN_COMBO(Order2,"Polynomial Order2", 3, "2|3|4|5|6")
    TREE_ADD_LABEL( "Successive Number" );
    if( GetNBox(testTree,"Test","Test", NULL, NULL) )
           out_tree( testTree );
}
//Treenode Order2's label change to Successive Number

See Also

Header to Include

GetNbox.h

Reference