CComponentsHeader: add member 'setHeaderButtons()'

Gives possibility to set default button types,

possible parameter types are:
CC_BTN_HELP, CC_BTN_INFO, CC_BTN_MENU, CC_BTN_EXIT
This commit is contained in:
2012-11-30 22:55:04 +01:00
parent fa9ffdd46e
commit 9605d7438f

View File

@@ -545,6 +545,7 @@ class CComponentsHeader : public CComponentsForm
void setHeaderIcon(const char* icon_name); void setHeaderIcon(const char* icon_name);
void addHeaderButton(const std::string& button_name); void addHeaderButton(const std::string& button_name);
void removeHeaderButtons(); void removeHeaderButtons();
void setHeaderButtons(const int buttons){cch_buttons = buttons;};
}; };
class CComponentsWindow : public CComponentsForm class CComponentsWindow : public CComponentsForm