> In the code below, the PNG image I'm loading is not displayed > immediately. I've been unable to overcome the delay before it is > displayed, although I'm told the image should be ready to display > immediately after loading (i.e., the constructor returns). > What am I doing wrong?
I've never played with splash screens in FLTK, but it seems to me that your creation/show timeline is based on procedural thinking. Someone with more experience should chime in here, but my first idea would be to create and show your splash screen as the first priority, and then create your main window(s) in a series of background tasks, possibly running as idle callbacks. Make sure that your splash window close callback function doesn't actually close the window until the main window is shown so that Fl::run() doesn't quit prematurely. The trick would be to build up the main user interface incrementally in the idle callbacks, otherwise the splash screen (and any progress bar you might have to show loading status) would freeze while the main user interface was being built. That's my 2c but I'm afraid I have no time to flesh it out or test it. Cheers Duncan _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

