I am beginner in LiveCode, I have an option menu it's contains some items (path of txt files), How I delete item from option menu,
is it possible delete item using mouse right up ?

Thanks
Kevin
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How I delete item from option menu
Code: Select all
on deleteOneItemFromMyMenu pMyMenu,pNumMenu
get the text of btn pMyMenu
delete line pNumMenu of it
set the text of btn pMyMenu to it
end deleteOneItemFromMyMenu
I think there is a way to do that but that will be a little bit more complicateis it possible delete item using mouse right up ?
Code: Select all
put "aaa" & return & "bob" & return & "ccc" & return & "ddd" into button "yourCombo"
Code: Select all
on menuPick pItemName
switch pItemName
case "ccc"
delete line lineOffset(pItemName,me) of me
break
end switch
end menuPick