Delete Menu Item from Option Menu Button
Roger Guay
irog at mac.com
Sat Nov 14 20:05:56 EST 2020
Thanks, Mark. That’s the approach I was trying but had forgotten about lineOffset. Instead, i was trying the Find command etc and making no headway.
Roger
> On Nov 14, 2020, at 4:31 PM, Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> 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
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list