2.3.1.92 GETN_STR_COMBO_WITH_HINT


Name

GETN_STR_COMBO_WITH_HINT

Declaration

#define GETN_STR_COMBO_WITH_HINT(_COMBO_STR) _tmpSubNode.SetAttribute(STR_COMBO_ATTRIB, _COMBO_STR);_tmpSubNode.SetAttribute(STR_ATTRIB_KEEP_LEFT_OF, ": ");

Remark

Set the combo with hint

Parameters

_COMBO_STR
[input] string type, should be a list separated with "|", and each list item should be value: hint. For example, "%(1,@WS): Wks|%(1,@WL): Wbook". Add "|" at the beginning, combo control will be editable.

Return

Examples

EX1

#include <GetNbox.h>
void GETN_STR_COMBO_WITH_HINT_ex()
{
	string strHint = "|%(1,@WS): Worksheet Name|%(1,@WL): Workbook LongName|%@F: Current Folder Name|%G: Project Name";
	GETN_TREE(tr);
	GETN_STR(code, "Enter Substitution Notation", "") GETN_STR_COMBO_WITH_HINT(strHint)
    if(GetNBox(tr))
    	printf("You have entered: %s\n", tr.code.strVal);    
}

See Also

GETN_COMBO

Header to Include

GetNBox.h

Reference