2.3.1.41 GETN_LISTBOX


Name

GETN_LISTBOX

Declaration

#define GETN_LISTBOX(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL, _COMBO_STR)  _tmpSubNode = _tmpNode.AddNumericNode((int)_DEFAULT_VAL, #_NODE_NAME, ONODETYPE_LISTBOX); TREE_ADD_LABEL(_NODE_LABEL);_tmpSubNode.SetAttribute(STR_COMBO_ATTRIB, _COMBO_STR);

Remark

This macro creates a list box 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_LISTBOX_ex1()
{
    GETN_BOX( treeTest );
    GETN_LISTBOX(Type, "Analysis Type", 1, "t-Test|Correlation|NLSF|Polynomial Fit|Statistics")
    if( GetNBox( treeTest ))
        out_tree( treeTest );
}

See Also

GETN_MULTISEL_LISTBOX

Header to Include

GetNbox.h

Reference