Hi,
I am not sure what you exactly want to do. Do you mean you need create a dialog with several checkboxes and the number of the checkboxes are dynamic?
If it is, try the following code;
void test()
{
int nSize = 8; // int nSize = vsGlobalInfo.GetSize();
vector<bool> bGlobalS;
bGlobalS.SetSize(nSize);
bGlobalS= false;
int nCurNum = 0;
string strNodeName, strLabel;
GETN_TREE(testTree)
while (nCurNum < nSize)
{
strNodeName.Format("SParaS%d", nCurNum);
strLabel.Format("S%d", nCurNum);
_tmpSubNode = _tmpNode.AddNumericNode(bGlobalS[nCurNum], strNodeName, TRGP_CHECK);
TREE_ADD_LABEL(strLabel);
nCurNum ++;
}
if( GetNBox(testTree,"Test Check and Button","Test Check...", NULL, NULL) )
out_tree( testTree );
}
Zachary
OriginLab Technical Services.
