On May 15, 2007, at 1:43 PM, Joerg Desch wrote:

> I would like to have a splash screen at startup. I think it is a good
> idea, because the application has to collect several informations and
> detect some devices. This takes some time, so I want to show some  
> progress
> informations.

All GUI libraries are event driven. You have to give FLTK the  
possibility to handle a few events every once in a while, or no  
graphics (like splash screens) will become visible.

The easiest way to do this is to call Fl::flush() or Fl::wait(0)  
after show(argc, argv), and then every time you finished part of you  
loading process (preferably every haldf second or so, better if every  
10th of a second, for a splash screen).

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


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

Reply via email to