GETN_STR

 

Name

GETN_STR

Declaration

#define GETN_STR(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL)   _tmpSubNode = _tmpNode.AddTextNode(_DEFAULT_VAL, #_NODE_NAME, TRGP_STR);TREE_ADD_LABEL(_NODE_LABEL);

Remark

This macro creates a edit box in GetN_Box dialogbox.

Parameters

_NODE_NAME
[input] the name of the new node to be added to the tree
_NODE_LABEL
[input] the string value to show the edit box name in the dialogbox
_DEFAULT_VAL
[input] string contents as the default value to show in the edit box.

Return

Examples

EX1

#include <GetNbox.h>
void GETN_STR_ex1()
{
    GETN_BOX( treeTest );
    GETN_STR(WksName, "Worksheet Name (please use short name)", "This is a test")
    
    if( GetNBox( treeTest ))
        out_tree( treeTest );
}

See Also

GETN_HINT, GETN_HINT_EX, GETN_INFO, GETN_READ_ONLY, GETN_READ_ONLY_COLOR, GETN_READ_ONLY_EX

header to Include

GetNbox.h

Reference