]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/popup/popup.cpp
log missing font directories with wxLogDebug, not wxLogTrace, for more visibility
[wxWidgets.git] / samples / popup / popup.cpp
index 8f5c2188b19b3938572dac6abe1706e294dd0e90..14075eaae7af5bdfed1a47112b4af5a0ea82ebc4 100644 (file)
@@ -229,7 +229,7 @@ void SimpleTransientPopup::OnButton(wxCommandEvent& event)
 
 void SimpleTransientPopup::OnSpinCtrl(wxSpinEvent& event)
 {
-    wxLogMessage( wxT("0x%lx SimpleTransientPopup::OnSpinCtrl ID %d Value %ld"), long(this), event.GetId(), event.GetInt());
+    wxLogMessage( wxT("0x%lx SimpleTransientPopup::OnSpinCtrl ID %d Value %d"), long(this), event.GetId(), event.GetInt());
     event.Skip();
 }
 
@@ -289,6 +289,9 @@ IMPLEMENT_APP(MyApp)
 // 'Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // create the main application window
     m_frame = new MyFrame(_T("Popup wxWidgets App"));