cc_frm_footer: add sizemode als default paramter to constructor

Origin commit data
------------------
Commit: aeec949f14
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-02-17 (Thu, 17 Feb 2022)
This commit is contained in:
2022-02-17 13:12:10 +01:00
committed by vanhofen
parent f1b35ccbd7
commit 32ca70c729
2 changed files with 3 additions and 3 deletions

View File

@@ -35,10 +35,10 @@ using namespace std;
//------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------
//sub class CComponentsFooter inherit from CComponentsHeader //sub class CComponentsFooter inherit from CComponentsHeader
CComponentsFooter::CComponentsFooter(CComponentsForm* parent):CCButtonSelect() CComponentsFooter::CComponentsFooter(CComponentsForm* parent, int sizeMode):CCButtonSelect()
{ {
//CComponentsFooter //CComponentsFooter
initVarFooter(1, 1, 0, 0, 0, parent, CC_SHADOW_OFF, COL_FRAME_PLUS_0, COL_MENUFOOT_PLUS_0, COL_SHADOW_PLUS_0, CC_HEADER_SIZE_LARGE); initVarFooter(1, 1, 0, 0, 0, parent, CC_SHADOW_OFF, COL_FRAME_PLUS_0, COL_MENUFOOT_PLUS_0, COL_SHADOW_PLUS_0, sizeMode);
} }
CComponentsFooter::CComponentsFooter( const int& x_pos, const int& y_pos, const int& w, const int& h, CComponentsFooter::CComponentsFooter( const int& x_pos, const int& y_pos, const int& w, const int& h,

View File

@@ -76,7 +76,7 @@ class CComponentsFooter : public CComponentsHeader, public CCButtonSelect
int initButtonContainer(const int& chain_width); int initButtonContainer(const int& chain_width);
public: public:
CComponentsFooter(CComponentsForm *parent = NULL); CComponentsFooter(CComponentsForm *parent = NULL, int sizeMode = CC_HEADER_SIZE_LARGE);
CComponentsFooter( const int& x_pos, const int& y_pos, const int& w, const int& h = 0, CComponentsFooter( const int& x_pos, const int& y_pos, const int& w, const int& h = 0,
const int& buttons = 0, const int& buttons = 0,
CComponentsForm *parent = NULL, CComponentsForm *parent = NULL,