2.3.1.5 GETN_ADD_LEFT_CHECK_TYPE


Name

GETN_ADD_LEFT_CHECK_TYPE

Declaration

#define GETN_ADD_LEFT_CHECK_TYPE(_TYPE)	_tmpSubNode.SetAttribute(STR_ATTRIB_DYNACONTROL_USE_CHECK_TYPE, _TYPE);

Remark

Options of the left checkbox.

Parameters

_TYPE
[input] it can be value DYNA_USE_CHECK_TYPE_SHOW or DYNA_USE_CHECK_TYPE_ENABLE.
DYNA_USE_CHECK_TYPE_SHOW : To determine the node is show or hide based on the checkbox.
DYNA_USE_CHECK_TYPE_ENABLE : To determine the node is enbale or disable based on the checkbox.

Return

Examples

EX1

void GETN_ADD_LEFT_CHECK_TYPE_Ex1()
{
    GETN_TREE(testTree)
 
    GETN_BEGIN_BRANCH(Fit, "Fitting Options")//Match GETN_END_BRANCH
        GETN_OPTION_BRANCH(GETNBRANCH_OPEN)
        GETN_NUM(Factor, "Scale Factor", 1.23)
        GETN_ADD_LEFT_CHECK(1)
        GETN_ADD_LEFT_CHECK_TYPE(DYNA_USE_CHECK_TYPE_SHOW)
    GETN_END_BRANCH(Fit)    //Match GETN_BEGIN_BRANCH

    if(GetNBox(testTree, NULL, NULL, NULL, NULL))
        out_tree(testTree);
}

Header to Included

GetNBox.h

Reference