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
    • Recent
    • Tags
    • Users
    • Login

    3 Questions about the treeview gui

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 174 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 02/09/2009 at 02:30, xxxxxxxx wrote:

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

      ---------
      Hello,

      i have a 3 questions about my treeview.

      1. After a douple Click on an element in the treeview, a dialog appears, where i can change the name of the element. The problem is, that my function

      > \> virtual Bool DoubleClick(void \*root,void \*userdata,void \*obj,LONG col,MouseInfo \*mouseinfo \>

      will be executed after the opening of the Name Dialog. Therefore is my first question, how can i avoid that the Name Dialog will open? Maybe there is a read only function?

      2. My second problem is similar, i want use the function

      > \> Bool ResultTree::MouseDown(void \*root,void \*userdata,void \*obj,LONG col,MouseInfo \*mouseinfo, Bool rightButton = FALSE) \> { \>      if(mouseinfo->rightButton == TRUE) \>      { \>           rightmousetest = TRUE;     // member for analyse in other cpp \>      } \>      return FALSE; \> } \>

      to create my own context menu in the main cpp, but after the first right-mouse-button-click appears a context menu with the elements (Remove, Remove All). After the second RMB-click appears my context menu. How can i avoid this?

      3. This is my last question. Is there a possibility in the treeview to select more than one element?

      I´m waiting of answers,

      coffeemax

      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 02/09/2009 at 04:51, xxxxxxxx wrote:

        1. you need to return TRUE in DoubleClick() if you handled the event

        2. for that you need to remove the standard context menu entries in CreateContextMenuColumn() (bc->RemoveData(ID_TREEVIEW_CONTEXT_REMOVE); bc->RemoveData(ID_TREEVIEW_CONTEXT_RESET);

        3. check the mode in Select() of TreeViewFunctions

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