2.3.1.40 GETN_ID


Name

GETN_ID

Declaration

#define GETN_ID(_ID) 		_tmpSubNode.DataID = _ID;

Remark

Set GetN control's DataID, not include branch. This DataID will use to load and save theme settings.

Parameters

_ID
DataID will set to node

Return

Examples

EX1

#include <GetNbox.h>
#define BRANCH_DATAID  12
#define CONTROL_DATAID  13
void GETN_ID_ex1()
{
    GETN_TREE(tr)

    GETN_BEGIN_BRANCH(WhichDay, "Test Branch with Combo") GETN_ID_BRANCH( BRANCH_DATAID)
        GETN_LIST(Smooth, "Smoothing Method", 0, "Adj Ave|Savisky-Golay|FFT Filter") GETN_ID(CONTROL_DATAID);
        GETN_COMBO(npts, "Smooth Pts",1, "|1|2|3|4|5|6")
    GETN_END_BRANCH(WhichDay)    //Match GETN_BEGIN_BRANCH

    if(GetNBox(tr, NULL, NULL, NULL, NULL))
    {
        out_int("Test Combo = ", tr.WhichDay.Use);
    }
}

See Also

Header to Include

GetNbox.h

Reference