]> git.saurik.com Git - wxWidgets.git/commitdiff
send wxNavigationKeyEvent to the correct window
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Mar 2007 15:14:21 +0000 (15:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Mar 2007 15:14:21 +0000 (15:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/taborder/taborder.cpp

index 62a49736b45afc5244a02797b278efbd4ad787b0..18b6593055ad4c5591cc26a1b1385e19da01ed68 100644 (file)
@@ -82,12 +82,15 @@ private:
     {
         wxNavigationKeyEvent event;
         event.SetFlags(flags);
-        if ( ProcessEvent(event) )
+        if ( m_panel->ProcessEvent(event) )
             wxLogStatus(this, _T("Navigation event processed"));
         else
             wxLogStatus(this, _T("Navigation event ignored"));
     }
 
+
+    wxPanel *m_panel;
+
     DECLARE_EVENT_TABLE()
 };
 
@@ -154,7 +157,7 @@ MyFrame::MyFrame()
 
     SetMenuBar(mbar);
 
-    new MyPanel(this);
+    m_panel = new MyPanel(this);
 
     CreateStatusBar(StatusPane_Max);
 }