THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/12/2012 at 21:31, xxxxxxxx wrote:
Cinema 4D Version: R14
Platform: Windows ;
I'm aware of a topic that's 6 or so months old on this, which incidently I posted in, but it only shows enough of how to get the treeview displaying. It didn't go as far as making and naming columns etc.
This is what I have in one of my GetDDescription tabs in the AM (tag object) :
cid_Tree = DescLevel(ID_TAB_TREEVIEW, CUSTOMGUI_TREEVIEW, 0);
if (!id_Tree || cid_Index.IsPartOf(*id_Tree ,NULL))
BaseContainer locked = GetCustomDataTypeDefault(CUSTOMGUI_TREEVIEW);
if (!description->SetParameter(cid_Tree , locked, DescLevel(ID_TAB_GROUP_TREEVIEW))) return TRUE;
Now, the above displays. But I haven't been able to get it to do anything more than that. I tried making a "class Tree : public TreeviewCustomGui" (think that was right..) but then wasn't sure how to attach it.
I'm just generally confused on how to implement this feature properly. Is anyone able to get me to the next stage here?
On 11/12/2012 at 00:12, xxxxxxxx wrote:
To initialize the tree you need to override the class TreeViewFunctions and initialize the tree with TreeViewCustomGui::SetRoot().
But we have no access to the TreeViewCustomGui instance so we can't use a tree view GUI in a description (see this previous post).