I've been using wxrc to turn my resources into source files for many years. I call it like this:
Code: Select all
./wxrc application_resources.xml -v -e -c -o application_resources.cpp
Code: Select all
class bitmapLogo : public wxBitmap {
protected:
private:
void InitWidgetsFromXRC(wxWindow *parent){
wxXmlResource::Get()->LoadObject(this,parent,wxT("bitmapLogo"), wxT("wxBitmap"));
}
public:
bitmapLogo(wxWindow *parent=NULL){
InitWidgetsFromXRC((wxWindow *)parent);
}
};
Code: Select all
Get()->LoadObject(this, ...
Code: Select all
Get()->LoadObject((wxObject*)this, ...
Many thanks for your help.
Pascal