THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/11/2005 at 14:51, xxxxxxxx wrote:
ok, ok. Thank you. Maybe it's true, that one learns better, by finding the solution oneself. I found the way doing it using GetDDescription(...) earlier in the momixer sdk example, but it seemed, that this method will only called once during initiation process. Since my function that counts the number of resource entries to be generated stores the value inside the base container, GetDDescription is called each time and now it works like I want it to.
But there is one problem left. I found a thread from cactus dan describing the same problem, but the thread ends without any solution.
I want my baselink boxes to accept splines only but I don't know how to setup the DESC_ACCEPT parameter:
00 bc2 = GetCustomDataTypeDefault(DTYPE_BASELISTLINK);
01 bc2.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_LINKBOX);
02 dbc = bc2.GetContainerInstance(DESC_ACCEPT);
03 if (dbc) dbc->SetString(5123, "Obone");
04 dbc = bc2.GetContainerInstance(DESC_REFUSE);
05 if (dbc) dbc->SetString(5155, "Obase");
06 if(!description->SetParameter(DescLevel(id, DTYPE_BASELISTLINK, 0), bc2, DescLevel(X_ASSIGN))) return FALSE;
02 returns a valid basecontainer, but 03 has no effect. 04 returns NULL, so that 05 won't be executed.
What am I doing wrong? The linkbox still accepts all objects.
Klaus