Klaus Rudolph schrieb:
> Stupid beginner question:
>
> I have a main window with a menu bar. One of the menus should be "&Exit"
> and the callback should terminate the application.
>
> As I read, I should delete the main window. If I do a
> Fl::delete_widget(win) my application crashes with double free corruption.
>
> Any hints?

win->hide();

Fl::run exits, when all windows of the application are closed (hidden).

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

Reply via email to