SebHoll wrote:
> Okey-dokey - I've attached a patch (against rev. 6951) that add's a 
> user_data() method to Fl_Tree_Item, and also an insert() and add() method to 
> Fl_Tree so that nodes can be added to items without needing the prefs 
> struct.
> 
> Have also replaced the type of any icon fields from Fl_Pixmap to its 
> superclass Fl_Image, so that code is more flexible.  Needed to fix a few 
> bugs in the positioning and drawing of items with icons too, in 
> Fl_Tree_Item::draw().
> 
> The final change I made was to make Fl_Tree's find_children() method public 
> (instead of protected), as I think this is quite a useful function call.
> 
> As for handling the expanding/collapsing events, I suggest that these run 
> the callback function, although I'm not sure what the best way to find out 
> exactly why the callback was made.  So I think I'll leave this to the FLTK 
> guru's in case I make a pig's ear out of it.

Thanks -- I'll apply the patch, and see what I come up with.

Oh wow, someone added Fl_Tree to the FLTK 1.3.x code base?
Cool.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to