From 147adf0a3a220bb7c55ff4380ef25365a278138c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 26 Mar 2007 19:20:30 +0000 Subject: [PATCH] fixed compilation without PCH git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/taborder/taborder.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/samples/taborder/taborder.cpp b/samples/taborder/taborder.cpp index 94439dd91e..3c845c8283 100644 --- a/samples/taborder/taborder.cpp +++ b/samples/taborder/taborder.cpp @@ -23,13 +23,17 @@ #ifndef WX_PRECOMP #include "wx/app.h" + #include "wx/log.h" #include "wx/frame.h" #include "wx/menu.h" + #include "wx/sizer.h" #include "wx/panel.h" + #include "wx/msgdlg.h" #include "wx/button.h" #include "wx/listbox.h" + #include "wx/stattext.h" #include "wx/textctrl.h" #endif @@ -122,7 +126,7 @@ public: MyTabTextCtrl(wxWindow *parent, const wxString& value, int flags = 0) : wxTextCtrl(parent, wxID_ANY, value, wxDefaultPosition, wxDefaultSize, - wxTE_PROCESS_TAB) + flags) { Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(MyTabTextCtrl::OnKeyDown)); } @@ -305,7 +309,8 @@ wxWindow *MyPanel::CreateTextPage(wxWindow *parent) sizerPage->Add(sizerH, wxSizerFlags(1).Expand()); sizerH = new wxBoxSizer(wxHORIZONTAL); - sizerH->Add(new wxStaticText(page, wxID_ANY, _T("&Another one::")), flagsBorder); + sizerH->Add(new wxStaticText(page, wxID_ANY, _T("&Another one:")), + flagsBorder); sizerH->Add(new MyTabTextCtrl(page, _T("press Tab here"), wxTE_PROCESS_TAB), flagsBorder); sizerPage->Add(sizerH, wxSizerFlags(1).Expand());