Cascading Menu Trouble
Posted: Wed Apr 30, 2014 5:35 pm
Hi there,
I can't figure out how to select items in a cascading menu button. I can get a simple menu button working just fine, and I can build a cascading menu - but writing the code for the extra submenu layer has thrown me.
This is a standard menu button from the dictionary
Can someone show me how to incorporate a submenu - lets say "Name of First Item", with "Submenu Item One", and "Submenu Item Two" ?
Cheers
I can't figure out how to select items in a cascading menu button. I can get a simple menu button working just fine, and I can build a cascading menu - but writing the code for the extra submenu layer has thrown me.
This is a standard menu button from the dictionary
Code: Select all
on menuPick theMenuItem
switch theMenuItem
case "Name of First Item"
-- do stuff here for first item
break
case "Name of Second Item"
-- do stuff here for second item
break
case "Name of Third Item"
-- do stuff here for third item
break
end switch
end menuPick
Cheers