X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/147adf0a3a220bb7c55ff4380ef25365a278138c..fcd209b6a20b41e7ddf9acf837311ac6779ea41f:/samples/taborder/taborder.cpp 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"));