Refreshing TreeView with MousePaint



  • 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;
    >      }
    >
    >
    > _



  • 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


Log in to reply