PaoloItaly wrote:
> FL_FLAT_BOX don't look at Fl::draw_box_active().
>
> void flat_box_draw(int x, int y, int w, int h, Fl_Color c)
> {
> fl_color(Fl::draw_box_active()?c:fl_inactive(c));
> fl_rectf(x, y, w, h);
> }
> Fl::set_boxtype(FL_FLAT_BOX, flat_box_draw, 0, 0, 0, 0);
>
> It's correct ?
In general, FL_FLAT_BOX is used to just fill with the standard
background color, which doesn't change for inactive widgets.
I suppose if you are using a colored background then we might want
to support drawing using the inactive version of that color - please
file a bug report here:
http://www.fltk.org/str.php
More than likely this will be fixed in 1.3...
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk