X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/431aea0327720fc44a3ea81b97eda10a5736ae54..9ba66aea31c17212db423ce08b3eb538d92048e0:/src/stc/stc.cpp.in diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index eec517db9f..a635b561df 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -525,7 +525,7 @@ void wxStyledTextCtrl::DoSetValue(const wxString& value, int flags) else SetText(value); - // We don't send wxEVT_COMMAND_TEXT_UPDATED anyhow, so ignore the + // We don't send wxEVT_TEXT anyhow, so ignore the // SetValue_SendEvent bit of the flags } @@ -571,7 +571,7 @@ wxStyledTextCtrl::DoLoadFile(const wxString& filename, int WXUNUSED(fileType)) if ( file.IsOpened() ) { wxString text; - if ( file.ReadAll(&text, *wxConvCurrent) ) + if ( file.ReadAll(&text, wxConvAuto()) ) { // Detect the EOL: we use just the first line because there is not // much we can do if the file uses inconsistent EOLs anyhow, we'd @@ -647,7 +647,7 @@ bool wxStyledTextCtrl::GetUseAntiAliasing() { } void wxStyledTextCtrl::AnnotationClearLine(int line) { - SendMsg(SCI_ANNOTATIONSETTEXT, line, NULL); + SendMsg(SCI_ANNOTATIONSETTEXT, line, (sptr_t)NULL); } @@ -833,9 +833,11 @@ void wxStyledTextCtrl::OnContextMenu(wxContextMenuEvent& evt) { void wxStyledTextCtrl::OnMouseWheel(wxMouseEvent& evt) { - m_swx->DoMouseWheel(evt.GetWheelRotation(), + m_swx->DoMouseWheel(evt.GetWheelAxis(), + evt.GetWheelRotation(), evt.GetWheelDelta(), evt.GetLinesPerAction(), + evt.GetColumnsPerAction(), evt.ControlDown(), evt.IsPageScroll()); }