wxSplashScreen and modal dialog problem ?
Chris Elliott
biol75 at york.ac.uk
Sat May 17 09:46:38 PDT 2008
so why not use the wxSPLASH_NO_TIMEOUT style?
chris
On 17 May 2008, at 17:35, Lothar Behrens wrote:
>
>
> 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
> _______________________________________________
> wx-users mailing list
> wx-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-users
>
More information about the wx-users
mailing list