derive wxSTC from wxTextAreaBase to provide wxTextCtrl-like methods (see #9114)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -516,7 +516,11 @@ void wxStyledTextCtrl::ScrollToColumn(int column) {
|
||||
}
|
||||
|
||||
|
||||
#if wxUSE_TEXTCTRL
|
||||
bool wxStyledTextCtrl::DoSaveFile(const wxString& filename, int WXUNUSED(fileType))
|
||||
#else
|
||||
bool wxStyledTextCtrl::SaveFile(const wxString& filename)
|
||||
#endif
|
||||
{
|
||||
wxFile file(filename, wxFile::write);
|
||||
|
||||
@@ -531,7 +535,11 @@ bool wxStyledTextCtrl::SaveFile(const wxString& filename)
|
||||
return success;
|
||||
}
|
||||
|
||||
#if wxUSE_TEXTCTRL
|
||||
bool wxStyledTextCtrl::DoLoadFile(const wxString& filename, int WXUNUSED(fileType))
|
||||
#else
|
||||
bool wxStyledTextCtrl::LoadFile(const wxString& filename)
|
||||
#endif
|
||||
{
|
||||
bool success = false;
|
||||
wxFile file(filename, wxFile::read);
|
||||
|
||||
Reference in New Issue
Block a user