* CComponentsInfoBox: Add setTextBorderWidth() to paintText()

- Add delete textbox to paint()
- remove CTextBox::AUTO_HIGH
This commit is contained in:
micha-bbg
2012-08-20 06:14:40 +02:00
committed by Thilo Graf
parent 53ff9cdddf
commit 1ac03645cc
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)