【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.3.1.86 GETN_SLIDER
Contents
Name
GETN_SLIDER
Declaration
#define GETN_SLIDER(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL, _COMBO_STR) _strTemp = _DEFAULT_VAL; _tmpSubNode = _tmpNode.AddTextNode(_strTemp, #_NODE_NAME, TRGP_SLIDER);TREE_ADD_LABEL(_NODE_LABEL);TREE_ADD_LABEL(_NODE_LABEL);_tmpSubNode.SetAttribute(STR_COMBO_ATTRIB, _COMBO_STR);
Remark
This macro creates a numeric slide 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|intervals
Return
Examples
EX1
#include <GetNbox.h> void GETN_SLIDER_ex1() { GETN_BOX( treeTest ); GETN_SLIDER(min, "From", 0, "0|255|255") if( GetNBox( treeTest )) out_tree( treeTest ); }
See Also
Header to Include
GetNbox.h