Is the following example what you are trying to do?
#include <GetNbox.h>
void GETN_BRANCH_Example()
{
GETN_TREE(testTree)
GETN_CHECK(CheckBox1, "Check Box One", 0)
GETN_BEGIN_BRANCH(Branch1, "My Branch")//Match GETN_END_BRANCH
GETN_OPTION_BRANCH(GETNBRANCH_OPEN) //open the branch, on showing
GETN_CHECK(CheckBox2, "Check Box Two", 0)
GETN_COMBO(ComboBox1, "Combo Box One", 1, "|0|1|2")
GETN_NUM(NumEditBox, "Numeric Edit Box One", 12.3)
GETN_STR(StrEditBox, "String Edit Box One", "This is a test")
GETN_BUTTON(FilePathButton, "File Path Button", GetAppPath())
GETN_END_BRANCH(Branch1) //Match GETN_BEGIN_BRANCH
GETN_NUM(NumEditBox2, "Another Numeric Edit Box", 20)
if(GetNBox(testTree, NULL, NULL, NULL, NULL))
out_tree(testTree);
}
All the GETN macros are documented at http://www.originlab.com/doc/OriginC/ref/GetN-OriginC