【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.3.1.93 GETN_STR_GROUP
Contents
Name
GETN_STR_GROUP
Declaration
#define GETN_STR_GROUP(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL, _COMBO_STR) _tmpSubNode = _tmpNode.AddTextNode(_DEFAULT_VAL, #_NODE_NAME, TRGP_STR_GROUP);TREE_ADD_LABEL(_NODE_LABEL); _tmpSubNode.SetAttribute(STR_COMBO_ATTRIB, _COMBO_STR);
Remark
This is a special Combo control that allows multiple entried in the combo list to be added into a single string value, separated by spaces.
User can directly edit the string in the edit box, or pick from the combo list and selected entry in the list will be appended to the edit box.
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 string group's name in the dialogbox
- _DEFAULT_VAL
- [input] string contents as the default value to show in the edit box
- _COMBO_STR
- [input] the combo list, "|one|two|three|four|five" will show a list of one, two, three, four , five
Return
Examples
EX1
#include <GetNbox.h> void GETN_STR_GROUP_ex1() { GETN_TREE( tr ); GETN_STR_GROUP(stats, "Please pick a few US Stats", "MA", "|MA|CA|RI|VT|NY") if( GetNBox( tr )) out_tree( tr ); }
See Also
Header to Include
GetNbox.h