Thanks Greg,
redrawing the window containing the widget works nice. :)

On 7/2/07, Greg Ercolano <[EMAIL PROTECTED]> wrote:
>
> Tobias Markmann wrote:
> > there is no update in the GUI until a resize of the window. Calling
> redraw()
> > or relayout() for pg doesn't help either. Any idea how to get it updated
> > right away? Is this even a good way to delete children from a
> PackedGroup?
>
>         To make the widget get erased when it's deleted, the widget
>         that manages the background graphics has to be told to redraw
>         over it. Even though pg might be the parent widget, it might
>         not be responsible for drawing any graphics into the background
>         of the removed widget, so telling it to redraw would be
> ineffective
>         in that case.
>
>         So if pg has a 'no box' or 'border only' box type, it won't
>         draw over the background, leaving the removed widget behind
>         on the screen.
>
>         Try telling the parent widget responsible for the background
>         to redraw. Or at worst, tell the window to redraw instead,
>         eg. window()->redraw();
>
> _______________________________________________
> fltk mailing list
> [email protected]
> http://lists.easysw.com/mailman/listinfo/fltk
>
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to