2.3.1.15 GETN_CHECKBOX_BRANCH


Name

GETN_CHECKBOX_BRANCH

Declaration

#define GETN_CHECKBOX_BRANCH(_CHK)	_tmpNode.Use = _CHK;

Remark

Add a check box to a branch node so that enable or diable of the entire branch.

Parameters

_CHK
the check box default state

Return

Examples

EX1

#include <GetNbox.h>
void GETN_CHECKBOX_BRANCH_ex1()
{
    GETN_TREE(tr)

    GETN_CHECK(AllCurves, "Ave All Curves", 0)

    GETN_BEGIN_BRANCH(Smooth, "Smooth Data Before Ave") GETN_CHECKBOX_BRANCH(1)
        GETN_LIST(Method, "Smoothing Method", 0, "Adj Ave|Savisky-Golay|FFT Filter")
        GETN_COMBO(npts, "Smooth Pts",1, "|1|2|3|4|5|6")
    GETN_END_BRANCH(Smooth)    //Match GETN_BEGIN_BRANCH

    GETN_STR(output, "Output Dataset", "")

    if(GetNBox(tr, NULL, NULL, NULL, NULL))
    {
        if(tr.Smooth.Use)
            printf("Smoothing is needed, type = %d, npts = %d\n", tr.Smooth.Method.nVal, tr.Smooth.npts.nVal);
        else
            out_str("Smoothing is turned off");
    }
}

See Also

GETN_CHECK

Header to Include

GetNbox.h

Reference