> I'm trying to make a cut/copy/paste capability that lets you cut or copy a 
> node (and its children, recursively) from an Fl_Tree to a "clipboard" and 
> later paste it back beneath a selected node.
>
> But Fl_Tree's remove method deletes the node and its children recursively, so 
> I need to make a copy of it first.
>
> And Fl_Tree_Item's copy constructor does not copy the children.
>
> And I cannot just make a derived class of Fl_Tree_Item to do it myself 
> because the _children array is protected.
>
> Is there some features I'm missing that would make this easier?

Sorry, I meant _children is private, not protected.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to