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

    TreeViewFunction - Drag objects

    SDK Help
    0
    2
    243
    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
      Helper
      last edited by

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

      On 16/03/2004 at 04:48, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.200 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello,
      i have create my own TreeViewFunction for a dialog. (like the SDK- ActiveObject  example). Now, I like used the drag functions within the tree. I overwriting the AcceptDragObject-Function and set the typ at INSERT_BEFORE|INSERT_AFTER|INSERT_UNDER.
      Now, I have got a funny behavior. I can´t INSERT_UNDER under the first entry. And if I try to INSERT_AFTER after the last entry, Cinema crashed with Stack Overflow. Can anyone help me,
      Marky

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

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

        On 17/09/2007 at 22:03, xxxxxxxx wrote:

        I realize that this is an extremely old topic, but I must concur with this even for R9 and R10. I am experiencing similar odd behavior with AcceptDragObject() when drag-n-dropping an element to a new position within the list - no crashing, just an unexpected pruning of my root tree list. The behavior is pretty much random - I can drag-n-drop on one try and *poof* there it is or I can do the same dozens of times before it happens. I've double-triple-quadruple-quintuple-... checked MY code and it is about as solid as any code out there: the logic is perfectly perfect. Thus I am led to believe that this is some buggy behavior in the TreeView itself. I cannot provide any situation where this is bound to occur - it just happens and I'm left with a portion of the list items gone for good.

        Pray-tell what could be the cause? Is there any message or clue beyond just this method to provide an informational check here?

        Thanks,

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