DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L1787 Version: 2.0-feature In fltk 1.1, the non-virtual Fl_Widget::size(w, h) is coded as { resize(x(), y(), w, h); } Similarly for position(). This constitutes a bit of a trap for the unwary: class Thing : public Fl_Something { void resize(int x, int y, int w, int h) { ... } void f(int a, int b) { Fl_Widget::size(a, b); // calls Thing::resize(), // not Fl_Widget::resize() } }; I think it would be preferable to code Fl_Widget::size(w, h) as Fl_Widget::resize(x(), y(), w, h) Link: http://www.fltk.org/str.php?L1787 Version: 2.0-feature _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
