From b348c1dac18d0131b8a665d5e5187b4597981a39 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 26 Mar 2007 15:14:21 +0000 Subject: [PATCH] send wxNavigationKeyEvent to the correct window git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/taborder/taborder.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/samples/taborder/taborder.cpp b/samples/taborder/taborder.cpp index 62a49736b4..18b6593055 100644 --- a/samples/taborder/taborder.cpp +++ b/samples/taborder/taborder.cpp @@ -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); } -- 2.45.2