textbox: add clear() function

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0b504f8c60
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-31 (Mon, 31 Oct 2016)

Origin message was:
------------------
- textbox: add clear() function

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-10-31 23:06:47 +01:00
parent 0e9db1640b
commit def8aa2a82
2 changed files with 11 additions and 0 deletions

View File

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