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.


Origin commit data
------------------
Commit: 8174f094e6
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-03-27 (Sun, 27 Mar 2022)
This commit is contained in:
2022-03-27 21:46:44 +02:00
committed by vanhofen
parent 04c946bf0f
commit 1e164bcd06
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);