]> git.saurik.com Git - wxWidgets.git/commitdiff
use NavigateIn() method instead of sending wxNavigationKeyEvent directly
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Mar 2007 22:15:14 +0000 (22:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Mar 2007 22:15:14 +0000 (22:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/taborder/taborder.cpp

index 3c845c82837ff03918ee1dd57c50b84c65544d0b..820db7fc0b021a5fddc2fd8f491c15a6c1b30cc5 100644 (file)
@@ -92,11 +92,9 @@ private:
 
     void OnIdle(wxIdleEvent& event);
 
 
     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"));
             wxLogStatus(this, _T("Navigation event processed"));
         else
             wxLogStatus(this, _T("Navigation event ignored"));