]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/propgrid/propgrid.cpp
Check axis number in the received joystick messages.
[wxWidgets.git] / samples / propgrid / propgrid.cpp
index afd52d9cb7d4e9752cf4d81fd1af6484ef481323..08a6c3eddef25cff7a6f38d9959288af5a726e6a 100644 (file)
@@ -68,7 +68,7 @@
 
 #include <wx/artprov.h>
 
-#ifndef __WXMSW__
+#ifndef wxHAS_IMAGES_IN_RESOURCES
     #include "../sample.xpm"
 #endif
 
@@ -128,7 +128,7 @@ bool wxSampleMultiButtonEditor::OnEvent( wxPropertyGrid* propGrid,
                                          wxWindow* ctrl,
                                          wxEvent& event ) const
 {
-    if ( event.GetEventType() == wxEVT_COMMAND_BUTTON_CLICKED )
+    if ( event.GetEventType() == wxEVT_BUTTON )
     {
         wxPGMultiButton* buttons = (wxPGMultiButton*) propGrid->GetEditorControlSecondary();
 
@@ -2024,7 +2024,7 @@ FormMain::FormMain(const wxString& title, const wxPoint& pos, const wxSize& size
     wxMenu *menuTools2 = new wxMenu;
     wxMenu *menuHelp = new wxMenu;
 
-    menuHelp->Append(ID_ABOUT, wxT("&About..."), wxT("Show about dialog") );
+    menuHelp->Append(ID_ABOUT, wxT("&About"), wxT("Show about dialog") );
 
     menuTools1->Append(ID_APPENDPROP, wxT("Append New Property") );
     menuTools1->Append(ID_APPENDCAT, wxT("Append New Category\tCtrl-S") );