2.3.1.7 GETN_BEGIN_GROUP


Name

GETN_BEGIN_GROUP

Declaration

#define GETN_BEGIN_GROUP(_BRANCH_LABEL) {string _strBranchLabel = "1 "; _strBranchLabel+= _BRANCH_LABEL; _tmpSubNode.SetAttribute(STR_GROUP_BRANCH_ATTRIB, _strBranchLabel);}

Remark

This macro is used with GETN_END_GROUP to group a set of control.

Parameters

_BRANCH_LABEL
[input] The label of this group branch.

Return

Examples

EX1

#include <GetNbox.h>
void GETN_BEGIN_GROUP_ex1()
{
    GETN_BOX(trRoot);
    GETN_CHECK(ExtraA, "ABC", false) //this node is not in the group
    GETN_COMBO(Order, "Polynomial Order", 2, "2|3|4|5|6") GETN_BEGIN_GROUP("User Settings")
    GETN_CHECK(abc, "Path Control", false)
    GETN_CHECK(def, "File Control", false)
    GETN_STR_GROUP(states, "Pick few US states", "CA", "|MA|CA|RI|VT|NY")
    GETN_CHECK(xyz, "Customize", true) GETN_END_GROUP
    GETN_CHECK(ExtraB, "XYZ", false); //this node is not in the group
    if ( GetNBox(trRoot) )
        out_tree(trRoot);
    return;
}

See Also

GETN_END_GROUP

Header to Include

GetNBox.h

Reference