Can't keep a menu stack

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Can't keep a menu stack

Post by dunbarx » Mon Mar 20, 2017 4:39 am

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

jmburnod
VIP Livecode Opensource Backer
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

Post by jmburnod » Sun Mar 26, 2017 10:07 pm

Hi Craig,

Code: Select all

on mouseUp
 pulldown stack the uMyStackMenu of this stack -- uMyStackMenu = filename
end mouseUp
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
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
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

Post by dunbarx » Mon Mar 27, 2017 5:42 am

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

Post Reply

Return to “Talking LiveCode”