md houssy wrote: > I am sorry but I couldn't manage that, this is my class , where B is > the box I would like to be changed any suggestions ?
Actually, looking at this again, I notice that your box B is not defined as actually having a box, only a frame: > B(FL_BORDER_FRAME,(w/2)-400-h/35,(h/10)+64-(w+h)/140,(w+h)/40,(w+h)/70,"") So I'd guess that the problem is that it doesn't get redrawn with a colour, because it has no box. Perhaps you are expecting to see a solid block of colour? If you define your box to only have a frame, then only the frame will get redrawn in the new colour, which may not be what you were expecting? FWIW, tweaking Brian's example to use FL_BORDER_FRAME as the boxtype, it all still works, though of course the colour change is much less obvious! _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

