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

Lothar Behrens lothar.behrens at lollisoft.de
Fri Feb 9 13:25:41 PST 2007


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







More information about the wx-users mailing list