CTestMenu: set dynamic size of buttons, use 1/10 of footer width

Origin commit data
------------------
Commit: 2bde5a6d08
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-01 (Thu, 01 May 2014)
This commit is contained in:
2014-05-01 19:41:52 +02:00
parent f2a19fbc2d
commit dbd4bd10a4

View File

@@ -550,8 +550,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
footer->setIcon(NEUTRINO_ICON_INFO);
//add button labels with conventional button label struct
footer->setButtonLabels(TestButtons, TestButtonsCount, 0, 150);
footer->setButtonLabels(TestButtons, TestButtonsCount, 0, footer->getWidth()/10);
//also possible: use directly button name and as 2nd parameter string or locale as text
// footer->setButtonLabel(NEUTRINO_ICON_BUTTON_RED, "This is a button label text!", 0, 250);