Home
Products
Community
Manuals
Contact
Login or Signup

wxStaticBitmap

BlitzMax Modules Forums/Brucey's Modules/wxStaticBitmap

Glenn Dodd(Posted 1+ years ago) #1
This doesn't display my graphic



I tried a jpg file too.

any ideas?

oh - and it came from wxCodeGen


Brucey(Posted 1+ years ago) #2
Have you tried

wxInitAllImageHandlers()

..somewhere before you want to use them.


Glenn Dodd(Posted 1+ years ago) #3
That makes quite a difference... :)
wxCodeGen didn't do that.
Should it have?

Cheers
Glenn


Brucey(Posted 1+ years ago) #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 1+ years ago) #5
Are the toolbars implemented for wxCodeGen?
I just noticed they aren't being output?


Brucey(Posted 1+ years ago) #6
Um... (quickly looks up the code)... seems not...

Probably wants doing then :-)


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

Cheers
Glenn