gui/widget/textbox.cpp: add flag to control screen save, default is false;

disable hide in desctructor
This commit is contained in:
[CST] Focus
2015-03-06 13:21:08 +03:00
parent ab1b3b9008
commit 72997591a0
2 changed files with 9 additions and 6 deletions

View File

@@ -147,6 +147,7 @@ class CTextBox
int m_nBgRadius;
int m_nBgRadiusType;
bool m_nPaintBackground;
bool m_SaveScreen;
Font* m_pcFontText;
int m_nFontTextHeight;
@@ -178,6 +179,7 @@ class CTextBox
void scrollPageDown(const int pages);
void scrollPageUp(const int pages);
void enableBackgroundPaint(bool mode = true){m_nPaintBackground = mode;};
void enableSaveScreen(bool mode = true){m_SaveScreen = mode;};
bool setText(const std::string* newText, int max_width = 0, bool force_repaint = true);
void setTextColor(fb_pixel_t color_text){ m_textColor = color_text;};
void setBackGroundRadius(const int radius, const int type = CORNER_ALL){m_nBgRadius = radius; m_nBgRadiusType = type;};