| Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 | 1. Question about wxStaticBitmap, calling failed... #4556 | Hi, i'm coding like this:
wxStaticBitmap(this, -1,
wxBitmap("../menu.gif", wxBITMAP_TYPE_GIF ),
wxDefaultPosition,
wxDefaultSize);
but it prompt me "No image handler for type 13 defined", what can i do now?
thank you..Meow~ | 2. Re: Question about wxStaticBitmap, calling failed... #4558 Posted by: upCASE 2004-06-20 23:51:36 | Hi! Either init all image handlers with (tataaaa) wxInitAllImageHandlers() before using the GIF file, or use wxImage::AddHandler( new wxGIFHandler );
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! | 3. Re: Question about wxStaticBitmap, calling failed... #4560 | Hi Upcase,
it seems like no error anymore, but, why i dont get any image on screen?
wxInitAllImageHandlers();
wxStaticBitmap(this, -1,
wxBitmap("../menu.gif", wxBITMAP_TYPE_GIF ),
wxDefaultPosition,
wxDefaultSize);
Thank youMeow~ | 4. Re: Question about wxStaticBitmap, calling failed... #4566 Posted by: upCASE 2004-06-21 15:48:51 | Hi! Problem could be that by setting the default size/position nothing gets displayed. Setting a size should do the job. Better load the bitmap first, then display it using the bitmaps size, or use a fixed size.
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! | 5. Re: Question about wxStaticBitmap, calling failed... #4567 | The image size is 120*36
wxStaticBitmap(panel, -1, wxBitmap("../menu.gif", wxBITMAP_TYPE_GIF ), wxPoint(1,10), wxSize(300,200));
Still no image displayed.. :(
Thank you..Meow~ | 6. Re: Question about wxStaticBitmap, calling failed... #4569 | I solved the problem already... Meow~ | Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 |
|
|