diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index 7120b7a16..10e04b023 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -836,6 +836,16 @@ void CTextBox::hide (void) frameBuffer = NULL; } +void CTextBox::clear(void) +{ + //TRACE("[CTextBox] %s Line %d\r\n", __FUNCTION__, __LINE__); + if (frameBuffer == NULL) + return; + + std::string clear(" "); + setText(&clear); +} + bool CTextBox::clearScreenBuffer() { if(m_bgpixbuf){ diff --git a/src/gui/widget/textbox.h b/src/gui/widget/textbox.h index d2213db78..c062b62e7 100644 --- a/src/gui/widget/textbox.h +++ b/src/gui/widget/textbox.h @@ -210,6 +210,7 @@ class CTextBox : public sigc::trackable inline int getTextMode() {return m_nMode;}; void paint (void); void hide (void); + void clear(void); bool clearScreenBuffer(); sigc::signal OnAfterRefresh; sigc::signal OnAfterScrollPage;