testalucida wrote:
> 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? How can I manage a solid area?

        First I'd suggest using Fl_Box instead of Fl_Widget.

        IIRC, Fl_Widget doesn't have a draw() method of it's own;
        Fl_Widget is intended to be derived from other widgets that
        provide their own draw() methods.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to