2.3.1.10 GETN_BRANCH_OPTION_BOX


Name

GETN_BRANCH_OPTION_BOX

Declaration

#define GETN_BRANCH_OPTION_BOX(BDEFAULT)			_tmpNode.SetAttribute(STR_ATTRIB_DYNACONTROL_USE_CHECK, BDEFAULT);

Remark

This macro allow user to change to enable status of a branch

Parameters

BDEFAULT
[input] Default enable status:true/false

Return

Examples

EX1

#include <GetNbox.h>
void GETN_BRANCH_OPTION_BOX_ex1()
{
    GETN_BOX(trRoot)
    GETN_STR(STR, "Tips", "Nothing")
    GETN_BEGIN_BRANCH(Details, "Details")
        GETN_BRANCH_OPTION_BOX(false)
        GETN_NUM(Min, "Min", 0)
        GETN_NUM(Max, "Max", 100)
    GETN_END_BRANCH(Details)
    if ( GetNBox(trRoot) )
        out_tree(trRoot);
    return;
}

See Also

Header to Include

GetNBox.h

Reference