Embed the image into the event sample
Don't load it from the image sample directory, this doesn't necessarily work under Unix if the image sample hadn't been built. Just embed an XPM image directly into the sample, this is good enough for demonstration purposes.
This commit is contained in:
@@ -298,8 +298,6 @@ bool MyApp::OnInit()
|
||||
if ( !wxApp::OnInit() )
|
||||
return false;
|
||||
|
||||
wxImage::AddHandler(new wxJPEGHandler);
|
||||
|
||||
// create the main application window
|
||||
MyFrame *frame = new MyFrame(wxT("Event wxWidgets Sample"),
|
||||
wxPoint(50, 50), wxSize(600, 340));
|
||||
|
Reference in New Issue
Block a user