Morfio
09-05-2005, 19:46
Hallo,
ich entwickle gerade an einer OpenSource-Software mit wxWidgets. Nun möchte ich auf einem Frame aber ein Bild anzeigen, was ich irgendwie nicht hinbekomme. Er zeigt einfach das Bild nicht an. Ich benutze dazu wxBitmap:
#include "login.h"
//#include "../div/bitmaps/login.xpm"
#include "../div/bitmaps/btnactive.xpm"
dsLogin::dsLogin(wxWindow *parent,
wxWindowID id,
const wxString &title,
const wxPoint &pos,
const wxSize &size,
long style,
const wxString &name) : wxFrame(parent, id, title, pos, size) {
// wxBoxSizer *wbsMain = new wxBoxSizer(wxVERTICAL);
// wxButton *button = new wxButton(this, -1, "gna");
wxBitmap *bitmap = new wxBitmap(btnactive_xpm);
}
Wie bekomme ich ein Bild angezeigt?
Vielen Dank,
Morfio ...
ich entwickle gerade an einer OpenSource-Software mit wxWidgets. Nun möchte ich auf einem Frame aber ein Bild anzeigen, was ich irgendwie nicht hinbekomme. Er zeigt einfach das Bild nicht an. Ich benutze dazu wxBitmap:
#include "login.h"
//#include "../div/bitmaps/login.xpm"
#include "../div/bitmaps/btnactive.xpm"
dsLogin::dsLogin(wxWindow *parent,
wxWindowID id,
const wxString &title,
const wxPoint &pos,
const wxSize &size,
long style,
const wxString &name) : wxFrame(parent, id, title, pos, size) {
// wxBoxSizer *wbsMain = new wxBoxSizer(wxVERTICAL);
// wxButton *button = new wxButton(this, -1, "gna");
wxBitmap *bitmap = new wxBitmap(btnactive_xpm);
}
Wie bekomme ich ein Bild angezeigt?
Vielen Dank,
Morfio ...