CMsgBox: add option to enable/disable button background

replaces var name btn_contour for better plausibility


Origin commit data
------------------
Commit: be740c1552
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-18 (Thu, 18 Aug 2016)
This commit is contained in:
2016-08-18 10:27:33 +02:00
parent 205838789f
commit 36d6eeea06
4 changed files with 26 additions and 16 deletions

View File

@@ -70,8 +70,8 @@ class CComponentsFooter : public CComponentsHeader
fb_pixel_t color_body,
fb_pixel_t color_shadow );
///show button frame and background, default false
bool btn_contour;
///show button with background, default false
bool ccf_enable_button_bg;
///enable/disable button frame in icon color, predefined for red, green, yellow and blue, default disabled
bool btn_auto_frame_col;
@@ -126,8 +126,10 @@ class CComponentsFooter : public CComponentsHeader
const int& alias_value = -1,
const neutrino_msg_t& directKeyAlt = CRCInput::RC_nokey);
///causes show/hide countour of button frame and background, parameter bool show, default= true
void showButtonContour(bool show = true);
///enables background of buttons, parameter bool show, default= true
void enableButtonBg(bool enable = true);
///disables background of buttons
void disableButtonBg(){enableButtonBg(false);}
///select a definied button, parameter1 as size_t
void setSelectedButton(size_t item_id);