Well, this is Fl_Group::draw():
void Fl_Group::draw() {
if (damage() & ~FL_DAMAGE_CHILD) { // redraw the entire thing:
draw_box();
draw_label();
}
draw_children();
}
You can see that the background is drawnd first, then the children are drawn.
You code calls this first, then draws the grid, which then draws over the
children.
You can either reproduce this function and insert your drawing after
"draw_box", or your draw function should set the box type to NONE (or clear the
FL_DAMAGE_CHILD flag), then draw your own box, then call Fl_Group::draw()
- Matthias
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk