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:
Vadim Zeitlin
2008-06-15 00:59:38 +00:00
parent 13c048017f
commit 2bfca191bf
5 changed files with 221 additions and 20 deletions

View File

@@ -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);