CComponentsButton: simplify assignment of button message values

Count of alternate message values was limited to 1 value. Now it is
possible to add any count of message values.

directKey and directKeyAlt were removed from struct type 'button_label_cc'
and directKeys was added as container for possible message values.

Some methods of CComponentsFooter had to be adapted for that.
This commit is contained in:
2017-03-20 22:51:54 +01:00
parent 8516b1662d
commit 4eb6a315fc
6 changed files with 104 additions and 65 deletions

View File

@@ -124,8 +124,7 @@ void CComponentsButton::initVarButton( const int& x_pos, const int& y_pos, const
cc_btn_font = NULL;
cc_btn_icon = icon_name;
cc_btn_text = caption;
cc_directKey = CRCInput::RC_nokey;
cc_directKeyAlt = cc_directKey;
cc_directKeys.push_back(CRCInput::RC_nokey);
cc_btn_result = -1;
cc_btn_alias = -1;