wxStaticBitmap

BlitzMax Modules Forums/Brucey's Modules/wxStaticBitmap

This doesn't display my graphic

m_bitmapLeft = New wxStaticBitmap.Create(m_panel, wxID_ANY, wxBitmap.CreateFromFile("C:/C2D/BlitzBasic/C2DTaskManager/Images/Dragon-Medium.png", wxBITMAP_TYPE_ANY))


I tried a jpg file too.

any ideas?

oh - and it came from wxCodeGen

Have you tried

wxInitAllImageHandlers()

..somewhere before you want to use them.

That makes quite a difference... :)
wxCodeGen didn't do that.
Should it have?

Cheers
Glenn

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

Are the toolbars implemented for wxCodeGen?
I just noticed they aren't being output?

Um... (quickly looks up the code)... seems not...

Probably wants doing then :-)

i sent you the formbuilder file again (work address) with a question on toolbar item layout.
off to sleep now.

Cheers
Glenn