From 2a1cf3e9ad88e76c2be62ac7d8a9d810479f7c90 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 26 Mar 2007 22:15:14 +0000 Subject: [PATCH] use NavigateIn() method instead of sending wxNavigationKeyEvent directly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/taborder/taborder.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/samples/taborder/taborder.cpp b/samples/taborder/taborder.cpp index 3c845c8283..820db7fc0b 100644 --- a/samples/taborder/taborder.cpp +++ b/samples/taborder/taborder.cpp @@ -92,11 +92,9 @@ private: void OnIdle(wxIdleEvent& event); - void DoNavigate(long flags) + void DoNavigate(int flags) { - wxNavigationKeyEvent event; - event.SetFlags(flags); - if ( m_panel->ProcessEvent(event) ) + if ( m_panel->NavigateIn(flags) ) wxLogStatus(this, _T("Navigation event processed")); else wxLogStatus(this, _T("Navigation event ignored"));