GETN_STR_COMBO

 

Name

GETN_STR_COMBO

Declaration

#define GETN_STR_COMBO(_COMBO_STR) _tmpSubNode.SetAttribute(STR_COMBO_ATTRIB, _COMBO_STR);

Remark

This macro is used to set the combo attribute of the current node

Parameters

_COMBO_STR
[input] string type, should be a numeric values list separated with "|". For example, "2|3|4|5|6". Add "|" at the beginning, combo control will be editable.

Return

Examples

EX1

#include <GetNbox.h>
void GETN_STR_COMBO_ex1()
{
    GETN_BOX(trRoot)
    
    // only can choose one from drop-down list
    GETN_STR(combo, "Select", "3") GETN_STR_COMBO("0|1|2|3|4|5")
    
    // editable, choose one from list or directly type into control
    GETN_STR(list, "Type", "int") GETN_STR_COMBO("|int|float|double")    
    
    if ( GetNBox(trRoot) ) // open getn dialog
        out_tree(trRoot);
}

See Also

GETN_COMBO

header to Include

GetNBox.h

Reference