Treeview description element



  • 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:

    User Information:
    Cinema 4D Version:   R14 
    Platform:   Windows  ;   
    Language(s) :

    ---------
    Hi folks,
     
    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);
          locked.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_TREEVIEW);
          locked.SetLong(TREEVIEW_BORDER, BORDER_BLACK);
          locked.SetBool(TREEVIEW_OUTSIDE_DROP, FALSE);
          locked.SetBool(TREEVIEW_HAS_HEADER, TRUE);
          locked.SetLong(DESC_ANIMATE, DESC_ANIMATE_OFF);
          locked.SetBool(DESC_GROUPSCALEV, TRUE);
          locked.SetString(DESC_NAME, "");
          locked.SetString(DESC_SHORT_NAME, "");
          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?

    Regards,
     
    WP.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 11/12/2012 at 00:12, xxxxxxxx wrote:

    Hi,

    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).


Log in to reply