CComponentsWindow: prepare possibility to change footer height

Origin commit data
------------------
Commit: 013cd1f2cc
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-14 (Fri, 14 Oct 2016)
This commit is contained in:
2016-10-14 00:43:34 +02:00
parent 3278e0e103
commit 77f953cdbb
2 changed files with 7 additions and 2 deletions

View File

@@ -126,6 +126,7 @@ void CComponentsWindow::initVarWindow( const int& x_pos, const int& y_pos, const
y = y_pos;
width = w;
height = h;
ccw_h_footer = 0; //auto
initWindowSize();
initWindowPos();
@@ -216,6 +217,8 @@ void CComponentsWindow::initFooter()
//add of footer item happens initCCWItems()
//set footer properties
if (ccw_footer){
if (ccw_h_footer)
ccw_footer->setHeight(ccw_h_footer);
ccw_footer->setPos(0, cc_yr + height - ccw_footer->getHeight()- fr_thickness);
ccw_footer->setWidth(width-2*fr_thickness);
ccw_footer->enableShadow(false/*shadow*/);

View File

@@ -89,6 +89,8 @@ class CComponentsWindow : public CComponentsForm
fb_pixel_t ccw_col_head_text;
///footer bg color
fb_pixel_t ccw_col_footer;
///footer heigh, default defined by footer object itself
int ccw_h_footer;
///footer button font
Font* ccw_button_font;