X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c19d0121f6e3216f21990135ba7238f7e2fe2a53..1353f87837a1f33d28a6491e81a507420306a75f:/contrib/samples/stc/stctest.cpp diff --git a/contrib/samples/stc/stctest.cpp b/contrib/samples/stc/stctest.cpp index b12ebf792f..b33052c86c 100644 --- a/contrib/samples/stc/stctest.cpp +++ b/contrib/samples/stc/stctest.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "stctest.cpp" #pragma interface "stctest.cpp" #endif @@ -49,7 +49,6 @@ public: void OnQuit(wxCommandEvent& event); void OnAbout(wxCommandEvent& event); - void OnStyleNeeded(wxStyledTextEvent& event); private: wxStyledTextCtrl* ed; @@ -70,7 +69,6 @@ enum BEGIN_EVENT_TABLE(MyFrame, wxFrame) EVT_MENU (ID_Quit, MyFrame::OnQuit) EVT_MENU (ID_About, MyFrame::OnAbout) - EVT_STC_STYLENEEDED (ID_ED, MyFrame::OnStyleNeeded) END_EVENT_TABLE() IMPLEMENT_APP(MyApp) @@ -181,14 +179,6 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) // event handlers -void MyFrame::OnStyleNeeded(wxStyledTextEvent& event) { - int currEndStyled = ed->GetEndStyled(); - ed->Colourise(currEndStyled, event.GetPosition()); -} - - - - void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) { // TRUE is to force the frame to close