added wxTextCtrl::AppendText, used by TextCtrl operator <<
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -220,6 +220,11 @@ void wxTextCtrl::WriteText(const wxString& text)
|
||||
// TODO write text to control
|
||||
}
|
||||
|
||||
void wxTextCtrl::AppendText(const wxString& text)
|
||||
{
|
||||
// TODO append text to control
|
||||
}
|
||||
|
||||
void wxTextCtrl::Clear()
|
||||
{
|
||||
// TODO
|
||||
@@ -345,7 +350,7 @@ int wxTextCtrl::overflow(int c)
|
||||
txt[plen] = (char)c; // append c
|
||||
txt[plen+xtra] = '\0'; // append '\0' or overwrite c
|
||||
// If the put area already contained \0, output will be truncated there
|
||||
WriteText(txt);
|
||||
AppendText(txt);
|
||||
delete[] txt;
|
||||
}
|
||||
|
||||
@@ -399,7 +404,7 @@ int wxTextCtrl::underflow()
|
||||
|
||||
wxTextCtrl& wxTextCtrl::operator<<(const wxString& s)
|
||||
{
|
||||
WriteText(s);
|
||||
AppendText(s);
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -407,7 +412,7 @@ wxTextCtrl& wxTextCtrl::operator<<(float f)
|
||||
{
|
||||
wxString str;
|
||||
str.Printf("%.2f", f);
|
||||
WriteText(str);
|
||||
AppendText(str);
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -415,7 +420,7 @@ wxTextCtrl& wxTextCtrl::operator<<(double d)
|
||||
{
|
||||
wxString str;
|
||||
str.Printf("%.2f", d);
|
||||
WriteText(str);
|
||||
AppendText(str);
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -423,7 +428,7 @@ wxTextCtrl& wxTextCtrl::operator<<(int i)
|
||||
{
|
||||
wxString str;
|
||||
str.Printf("%d", i);
|
||||
WriteText(str);
|
||||
AppendText(str);
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -431,7 +436,7 @@ wxTextCtrl& wxTextCtrl::operator<<(long i)
|
||||
{
|
||||
wxString str;
|
||||
str.Printf("%ld", i);
|
||||
WriteText(str);
|
||||
AppendText(str);
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -441,7 +446,7 @@ wxTextCtrl& wxTextCtrl::operator<<(const char c)
|
||||
|
||||
buf[0] = c;
|
||||
buf[1] = 0;
|
||||
WriteText(buf);
|
||||
AppendText(buf);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user