Try to rework footer

* try to fix enableButtonShadow(), seems an init is missing
* shadow fixed


Origin commit data
------------------
Branch: ni/coolstream
Commit: 2e631fd0ce
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-24 (Sat, 24 Sep 2016)



------------------
This commit was generated by Migit
This commit is contained in:
2016-09-24 00:52:59 +02:00
parent 7c44674518
commit 5db54fc647
9 changed files with 152 additions and 81 deletions

View File

@@ -97,6 +97,8 @@ void CMsgBox::init(const int& Height, const int& ShowButtons, const msg_result_t
height = min(MAX_WINDOW_HEIGHT, height);
width = min(MAX_WINDOW_WIDTH, width);
shadow = CC_SHADOW_ON;
//set result
if (Default_result != mbrNone)
result = default_result = Default_result;
@@ -175,8 +177,9 @@ void CMsgBox::initButtons()
ccw_footer->setButtonLabels(v_buttons, 0, 125);
//show buttons with background
//show buttons with background and shadow
ccw_footer->enableButtonBg(btn_enable_bg);
ccw_footer->enableButtonShadow(CC_SHADOW_ON, OFFSET_SHADOW/2, true);
//set position of meassage window and refresh window properties
setCenterPos();