GETN_MULTISEL_LISTBOX

 

Name

GETN_MULTISEL_LISTBOX

Declaration

#define GETN_MULTISEL_LISTBOX(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL, _COMBO_STR)  _tmpSubNode = _tmpNode.AddNode(#_NODE_NAME, ONODETYPE_MULTISEL_LISTBOX); _tmpSubNode.nVals = (int)_DEFAULT_VAL;TREE_ADD_LABEL(_NODE_LABEL);_tmpSubNode.SetAttribute(STR_COMBO_ATTRIB, _COMBO_STR);

Remark

This macro allow user to select multiple items from the listbox

Parameters

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

Return

Examples

EX1

#include <GetNbox.h>
void GETN_MULTISEL_LSITBOX_ex1()
{
    GETN_BOX(trRoot)
    GETN_MULTISEL_LISTBOX(Users, "Candidates", 1, "John|Jim|Jack|Jerry|James")
    if ( GetNBox(trRoot) )
        out_tree(trRoot);
    return;
}

See Also

GETN_LISTBOX

header to Include

GetNBox.h

Reference