wxStaticBitmap

BlitzMax Forums/Brucey's Modules/wxStaticBitmap

Glenn Dodd(Posted 2008) [#1]
This doesn't display my graphic



I tried a jpg file too.

any ideas?

oh - and it came from wxCodeGen


Brucey(Posted 2008) [#2]
Have you tried

wxInitAllImageHandlers()

..somewhere before you want to use them.


Glenn Dodd(Posted 2008) [#3]
That makes quite a difference... :)
wxCodeGen didn't do that.
Should it have?

Cheers
Glenn


Brucey(Posted 2008) [#4]
Not really. It's something you would add in your wxApp OnInit(), for example.

That function initialises *all* of them, but you might just want a PNG handler :
wxImage.AddHandler(New wxPNGHandler)


...tho I dunno if I've implemented them all yet :-p


Glenn Dodd(Posted 2008) [#5]
Are the toolbars implemented for wxCodeGen?
I just noticed they aren't being output?


Brucey(Posted 2008) [#6]
Um... (quickly looks up the code)... seems not...

Probably wants doing then :-)


Glenn Dodd(Posted 2008) [#7]
i sent you the formbuilder file again (work address) with a question on toolbar item layout.
off to sleep now.

Cheers
Glenn