// Author: Robin Dunn
//
// Created: 13-Jan-2000
-// RCS-ID: $Id$
// Copyright: (c) 2000 by Total Control Software
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#if wxUSE_FFILE
#include "wx/ffile.h"
#elif wxUSE_FILE
- #include "wx/ffile.h"
+ #include "wx/file.h"
#endif
#ifdef __WXGTK__
return SendMsg(2194, wx2stclen(text, buf), (sptr_t)(const char*)buf);
}
-// Replace the target text with the argument text after \d processing.
+// Replace the target text with the argument text after \\d processing.
// Text is counted so it can contain NULs.
-// Looks for \d where d is between 1 and 9 and replaces these with the strings
+// Looks for \\d where d is between 1 and 9 and replaces these with the strings
// matched in the last search operation which were surrounded by \( and \).
// Returns the length of the replacement text including any change
-// caused by processing the \d patterns.
+// caused by processing the \\d patterns.
int wxStyledTextCtrl::ReplaceTargetRE(const wxString& text) {
const wxWX2MBbuf buf = wx2stc(text);
SendMsg(2614, multiPaste, 0);
}
-// Retrieve the effect of pasting when there are multiple selections..
+// Retrieve the effect of pasting when there are multiple selections.
int wxStyledTextCtrl::GetMultiPaste() const
{
return SendMsg(2615, 0, 0);
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
}
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
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());
}