Delete Menu Item from Option Menu Button

Mark Wieder ahsoftware at sonic.net
Sat Nov 14 19:31:47 EST 2020


On 11/14/20 4:03 PM, Roger Guay via use-livecode wrote:
> Can someone tell me how to delete a menuItem from an Option Menu button programmatically?
> 
> Standing by ready to apply dope slap.

No dope slap necessary - it's not really obvious.
The menuItems are stored as the text of the button, so you can get and 
set it easily.

put button <whichButton> into tText
-- edit tText here
-- you can do a lineOffset and delete line x of tText
put tText into button <whichButton>

-- 
  Mark Wieder
  ahsoftware at gmail.com




More information about the use-livecode mailing list