i have pop-up menu , items read array , want refresh when press right mouse button. also, there way disable/enable items of pop-up menu?
first create pop-up menu , give name, e.g. "list a". create control mousedown handler or add mousedown handler card script.
on mousedown themousebutton if themousebutton 3 put "one item,another item,a third item,the last item" mylist replace comma cr in mylist put mylist btn "list a" popup btn "list a" end if end mousedown
set script of pop-up menu button following:
on menupick theitem switch theitem case "one item" answer "congrats" break default beep answer "not implented yet" break end switch end menupick
you can disable individual items preceding them parenthesis:
put "one item,another item,(a third item,the last item" mylist
this disable third item in menu.
there no need use arrays.
Comments
Post a Comment