X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9eddec696f06d65a80e7339b2fae14fcb55f8383..2cf3a6d7bef6f20bea35062dd3d4dbf0aec9efb5:/src/mac/classic/textctrl.cpp?ds=sidebyside diff --git a/src/mac/classic/textctrl.cpp b/src/mac/classic/textctrl.cpp index 57fc901cab..cae116ab43 100644 --- a/src/mac/classic/textctrl.cpp +++ b/src/mac/classic/textctrl.cpp @@ -25,6 +25,8 @@ #include "wx/dc.h" #include "wx/button.h" #include "wx/settings.h" + #include "wx/msgdlg.h" + #include "wx/toplevel.h" #endif #ifdef __DARWIN__ @@ -34,8 +36,6 @@ #include #endif -#include "wx/msgdlg.h" - #if wxUSE_STD_IOSTREAM #if wxUSE_IOSTREAMH #include @@ -44,7 +44,6 @@ #endif #endif -#include "wx/toplevel.h" #include "wx/notebook.h" #include "wx/tabctrl.h" #include "wx/filefn.h" @@ -641,9 +640,9 @@ OSStatus mUPOpenControl(ControlHandle theControl, long wxStyle ) -IMPLEMENT_DYNAMIC_CLASS(wxTextCtrl, wxControl) +IMPLEMENT_DYNAMIC_CLASS(wxTextCtrl, wxTextCtrlBase) -BEGIN_EVENT_TABLE(wxTextCtrl, wxControl) +BEGIN_EVENT_TABLE(wxTextCtrl, wxTextCtrlBase) EVT_DROP_FILES(wxTextCtrl::OnDropFiles) EVT_CHAR(wxTextCtrl::OnChar) EVT_MENU(wxID_CUT, wxTextCtrl::OnCut) @@ -663,7 +662,7 @@ static void SetTXNData( TXNObject txn , const wxString& st , TXNOffset start , T { #if wxUSE_UNICODE #if SIZEOF_WCHAR_T == 2 - size_t len = st.Len() ; + size_t len = st.length() ; TXNSetData( txn , kTXNUnicodeTextData, (void*)st.wc_str(), len * 2, start, end); #else