On Nov 22, 2007, at 5:43 PM, Tim Cramer wrote:

>

Leaving "Fl::run()" does not close the windows. It works quite the  
other way around: after all windows are closed (hidden), FLTK will  
leave the Fl::run() loop.

To close all windows outside of a callback, you can do something like  
this:
 > while (Fl::first_window()) hide(Fl::first_window());

If you are in a callback, you have to call Fl::delete_widget() on your  
windows instead. In this case, you use Fl::fisrt_window() and  
Fl::next_window(win).

----
http://robowerk.com/


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

Reply via email to