GETN_LIST
#define GETN_LIST(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL, _COMBO_STR) _tmpSubNode = _tmpNode.AddNumericNode((int)_DEFAULT_VAL, #_NODE_NAME, TRGP_ENUM_LIST); TREE_ADD_LABEL(_NODE_LABEL);_tmpSubNode.SetAttribute(STR_COMBO_ATTRIB, _COMBO_STR);
This macro creates a string combo list in the dialogbox.
Use numeric offset to set the default showing string.
EX1
#include <GetNBox.h> void GETN_LIST_ex1() { GETN_BOX( treeTest ); GETN_LIST(Type, "Analysis Type", 1, "t-Test|Correlation|NLSF|Polynomial Fit|Statistics") if( GetNBox( treeTest )) out_tree( treeTest ); }
GetNbox.h