OptionMenu in Current Tab (child of window)

You must Login before you can answer or comment on any questions.

Hi all,

My problem: i will make a option menu in a current tab (child of a window). But the option menu won’t appear. Only when i go back to the main window it will be there and not on the child window!

That’s my code:

// Refresh Button android / Menu
      var menuLT = Titanium.UI.Android.OptionMenu.createMenu();
      var tv = Ti.UI.createTableView({
            style:Titanium.UI.iPhone.TableViewStyle.GROUPED
      });
      // Item 1 
      var item3 = Titanium.UI.Android.OptionMenu.createMenuItem({
                  title: 'Aktualisieren',
                  icon: 'icon_menu_refresh.ico'
      });
      item3.addEventListener('click', function(){
             winLiveticker.remove(scrollViewLiveticker);
             json_ticker_load();
      });
      // Item 2 
      var item4 = Titanium.UI.Android.OptionMenu.createMenuItem({
                  title: 'Beenden',
                  icon: 'icon_menu_logout.ico'
      });
      item4.addEventListener('click', function(){
            winLiveticker.close();
      });
      menuLT.add(item3);
      menuLT.add(item4);
      Titanium.UI.Android.OptionMenu.setMenu(menuLT);
can anybody help me?

thx

— asked 3 years ago by chef koch
0 Comments

Your Answer

Think you can help? Login to answer this question!