|
From: Mattia B. <mb...@ds...> - 2002-06-02 19:07:02
|
> I've tried the splashscreen in a larger app. It works nicely if placed
> inside MyFrame (appears earlier than in OnInit).
>
> I only need some help on how to place it in BEGIN { }. Otherwise, Perl
> reads the whole file and modules first, making the splash only partly
> useful, due of the time lapse.
>
> First problem is that Wx::SplashScreen crashes if no parent is given.
> In the docs they use NULL in C++, but undef does not work in WxPerl.
( ^^^ wxPerl, SCNR )
For some reason I used wxFRAME_FLOAT_ON_PARENT in the style flag; if you use this
flag you need a parent ( or just specify a different set of flags in the ctor ).
> So I tried creating a new Frame, but just a grey splash appears and
> then Perl crashes.
If you don't create an App instance before doing anything else Bad Things Will
Happen...
<snip>
>
> I'm not sure why the demo uses a panel, but I also tried placing the
Because it's the last thing created..., no other reason
> splash directly on the window/frame, but that didn't make any
> difference.
minimal sample attached. Notice that the OnInit does nothing, and the work
done in OnInit has been moved in OnFoo, taht is called explicitly just before
MainLoop.
HTH
Mattia
|