Hi from sunny Brittany,
Thanks to Eric, Phil, Beda and especially Tore.
I was so used to using keywords in button definitions to modify
button parameters, that I didn't even look up "Menu" in the
dictionary (Can't see the wood for the trees ?)
Tore gave me little script routines which I can adap
What you are looking for is:
set the text of button “myMenu” to “myMenuList”
This can be called in a variety of handlers, at the latest in a mouseDown
handler in the menu button itself.
Here is an example I used with my student the other day. They were supposed to
make an application where the
Hi Francis,
I’m quite a new in livecode, so I hope I’ve understand your question right.
Problem: Changing dynamically the values of the options of a menu-button.
Proposal: Setting the text property of a button (style and menuMode of your
choice) with a list of menu items before this control
In the button script:
on mouseDown
-- put your list of choices into the button
end mouseDown
on menuPick pPicked
-- act on the selected option
end menuPick
That should work!
Phil Davis
On 2/9/16 11:44 AM, Francis Nugent Dixon wrote:
Hi from Sunny Brittany (at least it was this mor
Set the text of the button to the list of menu items.
Also look in the dictionary under menu for more drop down menu features.
eric
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage
Hi from Sunny Brittany (at least it was this morning !),
After many years of using buttons in my stacks, I am
discovering the joys of using “Pull Down” menus (and
about time too !).
I can change the script “cases” with the “set script” command,
but I also want to know how to change the value of t