GETN_MULTISEL_STR_LISTBOX

 

Name

GETN_MULTISEL_STR_LISTBOX

Declaration

#define GETN_MULTISEL_STR_LISTBOX(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL, _COMBO_STR)  _tmpSubNode = _tmpNode.AddNode(#_NODE_NAME, ONODETYPE_CTRL_STRING_ARRAY); _tmpSubNode.strVals = _DEFAULT_VAL;TREE_ADD_LABEL(_NODE_LABEL);_tmpSubNode.SetAttribute(STR_COMBO_ATTRIB, _COMBO_STR);

Remark

creates a multiselect string list box in the dialogbox.

Parameters

_NODE_NAME
[input] The node name of the control .
_NODE_LABEL
[input] Label of the control .
_DEFAULT_VAL
[input] Default value.
_COMBO_STR
[input] Values that allow user to select from.

Return

Examples

EX1

void GETN_MULTISEL_STR_LISTBOX_Ex1()
{
    GETN_TREE(tr)
    GETN_MULTISEL_STR_LISTBOX(StateList, _L("Positive State Value"), "", "a|b|c")
    
    vector<string> vs = {"c", "a"};
    GETN_CURRENT_SUBNODE.strVals = vs;
    
    if( GetNBox(tr ))
        out_tree( tr );
}

See Also

GETN_MULTISEL_LISTBOX

header to Included

GetNBox.h

Reference