GETN_COMBO_BRANCH
#define GETN_COMBO_BRANCH(_NN, _STR_COMBO) _tmpNode.Use = _NN; _tmpNode.SetAttribute(STR_ATTRIB_BRANCH_COMBO, _STR_COMBO);
Adding a combo box to a branch node so that the .Use value can be used for that branch
EX1
#include <GetNbox.h> void GETN_COMBO_BRANCH_ex1() { GETN_TREE(tr) GETN_BEGIN_BRANCH(WhichDay, "Test Branch with Combo") GETN_COMBO_BRANCH(0, "Monday Night|Tue Afternoon|Sunday Morning") GETN_LIST(Smooth, "Smoothing Method", 0, "Adj Ave|Savisky-Golay|FFT Filter") 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); } }
GetNbox.h