wxMac: wxBitmap("file.xpm", wxBITMAP_TYPE_XPM and error ?

Lothar Behrens lothar.behrens at lollisoft.de
Fri Feb 9 13:57:43 PST 2007



Lothar Behrens schrieb:

> Hi,
>
> I am implementing a toolbar into my application and wonder why the xpm
> files in the art directory
> couldn't be used.
>
> I get an error like this, if I try to initialize a wxBitmap with a
> filename:
>
> int EvNr = ID_SOMETHING;
>
> wxBitmap bm = wxBitmap("path to file/file.xpm", wxBITMAP_TYPE_XPM);
>
> tb->AddTool(EvNr, bm, "My tool text");
> tb->Realize();
>
> My system is wxMac 2.6.3.
>
> Any help ?
>
> Thanks, Lothar

Oops,

the error log:

No image handler for type 9 defined.
No bitmap handler for type 9 defined.

Regards

Lothar







More information about the wx-users mailing list