On Mar 23, 2007, at 9:42 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:
> In my app I have a widget wich invoke parent()->redraw() in order > to be redrawn. Why don't you just call "this->redraw()"? There is no need to redraw the parent. Unless you are having issues with an ouside label, which you can solve by either calling redraw_label() or by creating an Fl_Box instead which holds your label inside. > The pb is that each time the main window (parent) is entirely redrawn. Yes, you just called redraw() on the parent, so FLTK redraws the entire parent and all children. > So I want to reduce the clipping area and redraw only what is > necessary. > This is a pseudo code wich show the way I'm trying to make it > works, but it doesn't. That will not work the way you expect. Let's say for example you set the flag that only your subwidget needs to be redrawn, but at the same time, the whole window gets erased. Now, when "draw()" is called, it will see your flag and only redraw your widget, leaving the rest of the area damaged. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

