Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Treeview description element

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 299 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post