menue.cpp/h: modify move behavior of menu window for custom position

MENU_POS_PRESET is replaced with MENU_POS_CUSTOM. This allows
with methode setPos() to any position on screen without preset offset.
Old behavior is untouched.
This commit is contained in:
2022-03-23 21:08:44 +01:00
parent a48a0515c0
commit 9f5fc4a9d4
3 changed files with 18 additions and 7 deletions

View File

@@ -1380,6 +1380,7 @@ int CTestMenu::showTestMenu()
w_test.addItem(new CMenuForwarder("Shell Window Test", true, NULL, this, "shellwindow"));
// hardware
CMenuWidget *w_hw = new CMenuWidget("Hardware Test", NEUTRINO_ICON_INFO, width, MN_WIDGET_ID_TESTMENU_HARDWARE);
w_hw->setPos(20, 50);
w_test.addItem(new CMenuForwarder(w_hw->getName(), true, NULL, w_hw));
showHWTests(w_hw);