wxSplashScreen and modal dialog problem ?

Lothar Behrens lothar.behrens at lollisoft.de
Sat May 17 09:35:57 PDT 2008



On 17 Mai, 14:12, Chris Elliott <bio... at york.ac.uk> wrote:
> I am tempted to say its bad  design! Can you not check for the error  
> before showing the splashscreen and only show it if there is no error?  
> If you really want to do this, then don't use the autotimeout style  
> (perphaps destroy the dialog using a timer in your frame?)
>

The splash screen was a little bit for 'hiding' some time consuming
work at program start. The user then could see
some 'greeting' and while he/she is clicking on it, I could have done
some work.

Other applications I have seen do as early as possible a splash screen
and in normal circumstances there is no error.
I could do the splash screen later, but I'll prefer implementing my
own splash screen class and overwriting the
OnCloseWindow function. There I could notify the app of the destroying
of the splash screen.

That way I could savely destroy the window on errors before showing
modal dialogs, if it isn't closed yet.

The OnIdle function would be another option.

Thanks,

Lothar


More information about the wx-users mailing list