Here is my code where I define the instructions for each Item :
class MenuTestMenuDelegate extends WatchUi.Menu2InputDelegate {
function initialize() {
Menu2InputDelegate.initialize();
}
function onSelect(item) {
if (item != :Item1) {
System.println("Item 1");
WatchUi.pushView(new Rez.Menus.AuxMenu(), new AuxMenuDelegate(), WatchUi.SLIDE_UP);
} else if (item == :Item2) {
System.println("Item 2");
} else if (item == :Item3) {
System.println("Item 3");
}
}
}
Thank you in advance for your precious collaboration.