Home › Forums › General › Programming › Popup Menu Experiment › Reply To: Popup Menu Experiment
September 22, 2013 at 11:41 pm
#13472
Well i don’t know if i get the question but basicly
toneSelectMenu = function() m = PopupMenu() m:addSectionHeader ("Select a tone") -- add some other items return m:show(0,0,0,0) end handleTone = function(toneIndex) if toneIndex == 1 then -- tone 1 selected end if toneIndex == 2 then -- tone 2 selected end end main = function() -- the toneSelectMenu() method will return the chosen index -- the handleTone() method will decide what to do handleTone (toneSelectMenu()) end