imm wrote:
> It looks as if (at least on OSX, anyway) that calling hide on a
> Fl_Group widget (or by extension an Fl_Window) will attempt to call
> hide() on any children of the group - *even if they have already been
> deleted*. At least, that's what gdb appears to be showing me... Your
> problem may be a variation of that issue?

I think you solved my pb.
Actually, the thing to keep in mind before delete a widget is to not omit to 
remove it from the group.
Your code works perfect on my machine.
I corrected my code (wich is just a test code) and
the "my_callback2" function now looks like this:

void my_callback2(Fl_Widget *w)
{
  if(box)
  {
    remove(box);
    Fl::delete_widget(box);
    box = 0;
    redraw();
  }
}

It seems that it's no need to hide the widget before delete it.
The redraw function will do it.


Thanks again
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to