[erlang-questions] wxsplashscreen
eigenfunction
emeka_1978@REDACTED
Sat Feb 25 16:02:29 CET 2012
I spent two hours on this thing and i could not figure out what was
wrong.
Thank you very much indeed.
On 25 Feb., 15:31, Steve Davis <steven.charles.da...@REDACTED> wrote:
> Your first argument appears to be the atom 'bitmap'...
>
> regs,
> /s
>
> On Feb 25, 7:12 am, eigenfunction <emeka_1...@REDACTED> wrote:
>
>
>
>
>
>
>
> > Been trying to set up a simple splashscreen with wxerlang. Here is a
> > code snippet:
>
> > Server = wx:new(),
> > %% Parent = wxWindow:new(),
> > BM = wxBitmap:new("Penguins.jpg",[{type,?wxBITMAP_TYPE_JPEG}]),
> > SC = wxSplashScreen:new(bitmap,
> > ?wxSPLASH_CENTRE_ON_SCREEN,
> > 2000,
> > Server,
> > 100,
> > [
> > {pos,?wxDefaultPosition},
> > {size,?wxDefaultSize},
> > {style,?wxSTAY_ON_TOP}
> > ]),
>
> > It fails with the following error:
> > exception error: no function clause matching
> > wxSplashScreen:new(bitmap,2,2000,
> > {wx_ref,0,wx,[]},
> > 100,
> > [{pos,{-1,-1}},
> > {size,{-1,-1}},
> > {style,32768}]) (gen/
> > wxSplashScreen.erl, line 105)
>
> > Any Idea?
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questi...@REDACTED://erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@REDACTED://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list