GETN_NUM
#define GETN_NUM(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL) _tmpSubNode = _tmpNode.AddNumericNode(_DEFAULT_VAL, #_NODE_NAME, TRGP_DOUBLE);TREE_ADD_LABEL(_NODE_LABEL);
This macro creates a numeric edit box in the dialogbox.
EX1
#include <GetNBox.h> void GETN_NUM_ex1() { GETN_BOX( treeTest ); double ff = 1.23; GETN_NUM(Factor, "Scale Factor", ff) if( GetNBox( treeTest )) out_tree( treeTest ); }
GETN_OPTION_NUM_FORMAT
GetNbox.h