CComponentsInfoBox: Add setTextBorderWidth() to paintText()

- Add delete textbox to paint()
- remove CTextBox::AUTO_HIGH


Origin commit data
------------------
Branch: ni/coolstream
Commit: 1ac03645cc
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-08-20 (Mon, 20 Aug 2012)

Origin message was:
------------------
* CComponentsInfoBox: Add setTextBorderWidth() to paintText()

- Add delete textbox to paint()
- remove CTextBox::AUTO_HIGH


------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2012-08-20 06:14:40 +02:00
committed by Thilo Graf
parent 69b54672a6
commit 1ddc65e25d
2 changed files with 11 additions and 6 deletions

View File

@@ -368,18 +368,23 @@ void CComponentsInfoBox::paintText()
textbox = new CTextBox(text, font, text_mode, box, col_body);
//set properties
textbox->setTextBorderWidth(0);
textbox->movePosition(box->iX, box->iY);
textbox->setTextColor(col_text);
textbox->enableBackgroundPaint(false);
//set text
string new_text = static_cast <string> (text);
if (textbox->setText(&new_text))
// string new_text = static_cast <string> (text);
// if (textbox->setText(&text))
textbox->paint();
}
void CComponentsInfoBox::paint(bool do_save_bg)
{
if (textbox) {
delete textbox;
textbox = NULL;
}
paintInit(do_save_bg);
paintPicture();
if (text)