GETN_CONTROL_OPTION_BOX

 

Name

GETN_CONTROL_OPTION_BOX

Declaration

#define GETN_CONTROL_OPTION_BOX(BDEFAULT)                 _tmpSubNode.SetAttribute(STR_ATTRIB_DYNACONTROL_USE_CHECK, BDEFAULT);

Remark

This macro allow user to change to enable or disable status of a control

Parameters

BDEFAULT
[input] Default enable status: true/false

Return

Examples

EX1

#include <GetNbox.h>
void GETN_CONTROL_OPTION_BOX_ex1()
{
    GETN_BOX(trRoot)
    GETN_NUM(Min, "Min", 0) GETN_CONTROL_OPTION_BOX(false)
    GETN_NUM(Max, "Max", 100) GETN_CONTROL_OPTION_BOX(true)
    if ( GetNBox(trRoot) )
        out_tree(trRoot);
    return;
}

See Also

header to Include

GetNBox.h

Reference