Greg Ercolano wrote:
> see the "<<<" in the below example
Correction: that "<<<" should have said "***",
as I was referring to this line in the example:
> void draw() { // if you define your own draw()..
> Fl_Window::draw(); // then you HAVE to call this. (***)
..without that Fl_Window::draw(), the menubar won't draw,
but the GL window may.
When defining your own draw() method for subclass of Fl_Window,
you must call the base class's draw() method, as that handles
drawing all the children. When you overload draw() for the
window, you're really taking over ALL aspects of drawing that
window AND its children. Same for Fl_Group, Fl_Scroll, and
all other grouping widgets.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk