]> git.saurik.com Git - wxWidgets.git/commitdiff
Various fixes incl. checking in .po/.mo files
authorJulian Smart <julian@anthemion.co.uk>
Wed, 9 Dec 1998 18:12:31 +0000 (18:12 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 9 Dec 1998 18:12:31 +0000 (18:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dynamic/dynamic.cpp
samples/ownerdrw/ownerdrw.cpp
samples/treectrl/treetest.h

index e8be267bda03379f4487c5b365342481dcab9129..3bf016f19fcea7af6b7c19b2815fc4e1deaf9fe6 100644 (file)
@@ -60,8 +60,8 @@ bool MyApp::OnInit(void)
   // Create the main frame window
   MyFrame *frame = new MyFrame(NULL, "Dynamic wxWindows App", 50, 50, 450, 340);
 
-  frame->Connect( DYNAMIC_QUIT,  -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction)MyFrame::OnQuit );
-  frame->Connect( DYNAMIC_ABOUT, -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction)MyFrame::OnAbout );
+  frame->Connect( DYNAMIC_QUIT,  -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) MyFrame::OnQuit );
+  frame->Connect( DYNAMIC_ABOUT, -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) MyFrame::OnAbout );
 
   // Give it an icon
 #ifdef __WXMSW__
index 87f8c89da58325bdae2fe812574a46479b283a2b..27815e5424df76b54c1824d561a30d4bdcde0ffc 100644 (file)
@@ -241,6 +241,8 @@ OwnerDrawnFrame::OwnerDrawnFrame(wxFrame *frame, char *title, int x, int y, int
     
   }
 
+  delete[] astrChoices;
+
   // create the status line
   const int widths[] = { -1, 60 };
   CreateStatusBar(2);
index 9adacc8acf66a928eef9f1eb49727a1f2f18d6b2..fd921e2f640bcb1f148e3d6905083d408637cb73 100644 (file)
@@ -54,7 +54,7 @@ public:
   void OnItemCollapsing(wxTreeEvent& event);
   void OnSelChanged(wxTreeEvent& event);
   void OnSelChanging(wxTreeEvent& event);
-  void OnTreeKeyDown(wxTreeEvent& event);
+  void OnTreeKeyDown(wxKeyEvent& event);
 
   void GetItemsRecursively(const wxTreeItemId& idParent, long cookie);