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

    Refreshing TreeView with MousePaint

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 231 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 27/01/2008 at 14:07, xxxxxxxx wrote:

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

      ---------
      I'm trying to implement the treeview with the mouse painting functionality (inpaint=TRUE and whatnot), but I can't figure out how to refresh the tree while painting. I figured out that I could refresh it once I'm done painting by trapping the BFM_INTERACTEND message, but the OM for instance refreshes immediately as you paint over each indicator. How do I call the refresh function during painting?

      TIA for any assistance.

      Here's my MouseDown TreeViewFunction:

      > _
      >      virtual Bool MouseDown(void* root, void* userdata, void* obj, LONG col, MouseInfo* mouseinfo, Bool rightButton = FALSE) {
      >           TextureNode *node = (TextureNode* )obj;
      >           if(col == 'chek') {
      >                if(mouseinfo->inpaint) {
      >                     node->checked = !node->checked;
      >                } else {
      >                     mouseinfo->startpaint = TRUE;
      >                }
      >                return TRUE;
      >           }
      >           return FALSE;
      >      }
      >
      >
      > _

      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 27/01/2008 at 22:59, xxxxxxxx wrote:

        I think you have to use the GeUserArea of the TreeView for this. I will ask the developers what would be the best way to do this.

        cheers,
        Matthias

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