2.3.1.86 GETN_SLIDEREDIT


Name

GETN_SLIDEREDIT

Declaration

#define	GETN_SLIDEREDIT(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL, _COMBO_STR)	_strTemp = _DEFAULT_VAL; _tmpSubNode = _tmpNode.AddTextNode(_strTemp, #_NODE_NAME, TRGP_SLIDEREDIT);TREE_ADD_LABEL(_NODE_LABEL);TREE_ADD_LABEL(_NODE_LABEL);_tmpSubNode.SetAttribute(STR_COMBO_ATTRIB, _COMBO_STR);

Remark

This macro creates a numeric slider with edit box in the 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 as the node name in the dialogbox
_DEFAULT_VAL
[input] numeric value to default show in the box
_COMBO_STR
[input] value range
The format should be min|max|interval

Return

Examples

EX1

#include <GetNbox.h>
void GETN_SLIDEREDIT_ex1()
{
    GETN_BOX( treeTest );
    GETN_SLIDEREDIT(min, "To", 0, "0|255|255")
    if( GetNBox( treeTest ))
        out_tree( treeTest );
}

See Also

GETN_SLIDER

Header to Include

GetNbox.h

Reference