CMsgBox: add option to enable/disable button background

replaces var name btn_contour for better plausibility


Origin commit data
------------------
Branch: ni/coolstream
Commit: be740c1552
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-18 (Thu, 18 Aug 2016)



------------------
This commit was generated by Migit
This commit is contained in:
2016-08-18 10:27:33 +02:00
parent 6559919487
commit cb82b046cb
4 changed files with 26 additions and 16 deletions

View File

@@ -112,6 +112,9 @@ class CMsgBox : public CHintBox
///assigned button captions
std::string BTN_TEXT(const int& showed_button);
///enables/disable button background
bool btn_enable_bg;
void initButtons();
public:
/* Constructor */
@@ -181,6 +184,11 @@ class CMsgBox : public CHintBox
*/
void setButtonText(const int& showed_button, const std::string& text);
///enables background of buttons, parameter bool show, default= true
void enableButtonBg(bool enable = true);
///disables background of buttons
void disableButtonBg(){enableButtonBg(false);}
// bool setText(const std::string* newText);
};