Let's start with the Menu section from here: http://developer.garmin.com/connect-iq/developer-tools/user-interface/
xml resource config:
The docs show:
<menu name="MainMenu">
<menu-item id="item_1" handlerMethod="menu_handler_method_1">Item 1</menu-item>
<menu-item id="item_2" handlerMethod="menu_handler_method_2">Item 2</menu-item>
</menu>
This is incorrect. "name" in the "menu" element should actually be "id", and the above won't even compile.
accessing the menu object
The docs say:
class MyClass extends Ui.Page {
var menu;
function initialize() {
menu = new MainMenu(self);
}
}
This also doesn't work. After grepping the debug symbols, I realized that the following code will allow you to access the menu object:
...
menu = Rez.Menus.MainMenu;
...
what next?Once I get here, I try to call
menu.openMenu(Ui);
like the docs instruct, but I get errors related to files on somebody else's computer:
Failed invoking <symbol>
Symbol Not Found Error
in onKey (source/MackSmack.mc:197)
in handleEvent (/Users/lahm/Desktop/Monkeybrains/toolchain/mbsimulator/submodules/technology/monkeybrains/virtual-machine/api/WatchUi.mb:237)
This looks like the end of the road for menus for now, and there aren't any examples of anyone actually using Rez.Menus in the samples. Anyone have any luck with these?
Speaking of which, what would a menu look like on the Fenix 3? I figured I'd just pop one up when someone pressed the start key.
Thanks!