mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user