X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/147adf0a3a220bb7c55ff4380ef25365a278138c..0fe243db0c0447b69917eaa6d3a0e32743229638:/samples/taborder/taborder.cpp diff --git a/samples/taborder/taborder.cpp b/samples/taborder/taborder.cpp index 3c845c8283..72e99a0fce 100644 --- a/samples/taborder/taborder.cpp +++ b/samples/taborder/taborder.cpp @@ -39,6 +39,11 @@ #include "wx/notebook.h" +#ifndef __WXMSW__ + #include "../sample.xpm" +#endif + + // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- @@ -92,11 +97,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")); @@ -191,6 +194,8 @@ MyFrame::MyFrame() : wxFrame(NULL, wxID_ANY, _T("TabOrder wxWidgets Sample"), wxDefaultPosition, wxSize(700, 450)) { + SetIcon(wxICON(sample)); + wxMenu *menuFile = new wxMenu; menuFile->Append(TabOrder_About); menuFile->AppendSeparator();