- textbox: add clear() function

This commit is contained in:
svenhoefer
2016-10-31 23:06:47 +01:00
parent 1fc717f56f
commit 0b504f8c60
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){