testalucida schrieb: > Hi all, > > I have a Fl_Group upon which a Grid is drawn. By pressing a button a > simple red rectangular Fl_Widget (box: FL_FLAT_BOX) is added to the > Fl_Group, then the draw-method of the Fl_Widget is called. I expected > to see a solid red area - but the Grid is shining through the > rectangular Widget. Or maybe it isn't actually shining through but > drawn above the widget?
I think that's what happens - the draw() of the widget is called before drawing the grid. What does "then the draw-method ... is called" mean in detail? Normally no one calls any draw-method, but asks for a redraw(), so I think you placed drawing of the grid wrong. A Fl_Group draws itself - first the box or frame (when activated) and then it calls the draw()-methods of the childs. If you are drawing the grid out of the group, draw() of the group should look like (Pseudocode): 1. DrawBox() 2. DrawGrid() 3. DrawAllChilds() _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

