On 25/10/2015 at 21:07, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 16
Platform: Windows ;
Language(s) :
---------
Hello, I want to add new groups to a tab (see: SECOND_TAB). But I don't know, how to achieve that. I found "AddChildren" in the SDK but I don't know how to setup the container. Can someone help me please?
dialog ressource:
DIALOG DLG_MAINDIALOG {
TAB TAB{
GROUP FIRST_TAB {
...
}
GROUP SECOND_TAB {
...
}
}
}
code for the groups to add:
for (Int32 i = 0; i < materialLinks.GetCount(); i++) {
GroupBegin(GROUP_ID12, BFH_SCALEFIT, 0, 0, "", BFV_GRIDGROUP_EQUALROWS);
AddEditText (ETEX_UE4MAT+i, BFH_SCALEFIT, 0 , 0);
AddEditText (ETEX_C4DMAT+i, BFH_SCALEFIT, 0 , 0);
AddEditText (ETEX_LAYER+i, BFH_SCALEFIT, 0 , 0);
AddEditText (ETEX_GROUP+i, BFH_SCALEFIT, 0 , 0);
GroupEnd();
}