Hi,
I have modified the main loop of the example "table-simple.cxx" as shown below:
int main(int argc, char **argv)
{
for(;;)
{
Fl_Double_Window win(900, 400, "Simple Table");
MyTable table(20,20,880,380);
win.end();
win.resizable(table);
win.show(argc,argv);
Fl::run();
for(;;)
{
Fl_Double_Window win(900, 400, "Simple Table");
MyTable table(20,20,880,380);
win.end();
win.resizable(table);
win.show(argc,argv);
Fl::run();
// the previous window remains on the screen ... why? <-----------
sleep(5);
}
}
sleep(5);
}
}
When I click on the x button of the window the main loop terminates but the window disappears.
How can I changes this ?
Regards
--Armin
| SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 |
_______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
