DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2377
Version: 1.3-current


Hmm, I must be missing something: what is it that you can't do without this
patch?

You should be able to access the normal fltk parent() method with:

    Fl_Widget *w = tree->parent();


Fl_Tree derives from "public Fl_Group", so the underlying FLTK methods
should all be public and accessible unless eclipsed.

Fl_Tree's parent() takes "Fl_Tree_Item*" as an argument, so it will not
eclipse the normal FLTK parent() method, which has a void argument.

This all said, I'm not entirely sure why Fl_Tree has a
parent(Fl_Tree_Item*) method, as getting an item's parent is more straight
forward with just item->parent(). So I think I should remove Fl_Tree's
existing implementation anyway..!


Link: http://www.fltk.org/str.php?L2377
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to