【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.3.1.20 GETN_COMBO_BRANCH
Contents
Name
GETN_COMBO_BRANCH
Declaration
#define GETN_COMBO_BRANCH(_NN, _STR_COMBO) _tmpNode.Use = _NN; _tmpNode.SetAttribute(STR_ATTRIB_BRANCH_COMBO, _STR_COMBO);
Remark
Adding a combo box to a branch node so that the .Use value can be used for that branch
Parameters
- _NN
- default index of the combo string
- _STR_COMBO
- the branch combo, format "one|two|three"
Return
Examples
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); } }
See Also
Header to Include
GetNbox.h