GETN_LIST

 

Name

GETN_LIST

Declaration

#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);

Remark

This macro creates a string combo list in the dialogbox.

Use numeric offset to set the default showing string.

Parameters

_NODE_NAME
[input] the name of the new node to be added to the tree
_NODE_LABEL
[input] the string value to show as the node name in the dialogbox
_DEFAULT_VAL
[input] numeric offset
_COMBO_STR
[input] the combo list, "|one|two|three|four|five" will show a list of one, two, three, four , five

Return

Examples

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 );
}

See Also

GETN_COMBO

header to Include

GetNbox.h

Reference