A thread on the use-list, repeated here.
I actually never tried using a stack as a menu. So I just did. But in both v6.7 and 8.1.3, if I create and name a new stack, add a single menu-style button to it, and set the "menuName" of the button to the stack name, as soon as I click on the button, LC crashes and quits.
Was it something I said?
Craig
Can't keep a menu stack
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Can't keep a menu stack
Hi Craig,
works for me LC 8.1.3, OS X 10.12.3
I also tried using menuname with popup menu and it works too
menuname = short name of menu stack (it is in same folder)
Best regards
Jean-Marc
Code: Select all
on mouseUp
pulldown stack the uMyStackMenu of this stack -- uMyStackMenu = filename
end mouseUp
I also tried using menuname with popup menu and it works too
menuname = short name of menu stack (it is in same folder)
Best regards
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 9669
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Can't keep a menu stack
Jean-Marc.
Thanks. But I should have deleted this last week. It turns out that I was placing the menu button in the same stack as the stack menu. A recursion, er, issue arises when one does that.
I just had never used one before, and the user guide does not really tell me not to.
Craig
Thanks. But I should have deleted this last week. It turns out that I was placing the menu button in the same stack as the stack menu. A recursion, er, issue arises when one does that.
I just had never used one before, and the user guide does not really tell me not to.
Craig