On 16.02.2009, at 20:29, Ronnie Ward wrote: >> The user can exit the code using an exit button, whose callback >> contains an exit(0), or the user can close the window using the X >> in the upper right corner. The problem occurs in the latter case. >> I'd like to just catch the close (X) and exit(0), but setting a >> callback on the main window doesn't do the trick.
Yes, it does. Of course, once you set the callback, you still have to hide the window and call exit() yourself. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

