Page 1 of 1

Can't keep a menu stack

Posted: Mon Mar 20, 2017 4:39 am
by dunbarx
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

Re: Can't keep a menu stack

Posted: Sun Mar 26, 2017 10:07 pm
by jmburnod
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

Re: Can't keep a menu stack

Posted: Mon Mar 27, 2017 5:42 am
by dunbarx
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