On 18.05.2011, at 13:00, Albrecht Schlosser wrote: > On 17.05.2011 20:18, Francesco wrote: >>> Override your widget s draw() function. In there, set the clipping = >>> to your widget size. Then call parent()->draw(). Then draw you widget. > > Be careful with this! Although Matt should know, maybe he was in a > hurry, or I may be wrong... > > Calling parent->draw() in your widget's draw() method would IMO result > in a recursive and endless loop of calling your widget's draw() method!
Ugh, yes, I meant Fl_Widget::draw_box(); > If you use a "normal" > box type, you can simply call Fl_Widget::draw_box() or draw the box > (and background) yourself. ...as you said. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
