Hi folks, Please can anyone explain the syntax needed to set a menu option via scripting - or point me in the right direction?
I'm using an option menu to apply preset filters to a list field and when the card opens, I'd prefer to have the menu show the 'All items' choice rather than its name/label.
It's probably a one-liner but I'm currently searching in vain - what's the secret keyword?
Best,
Keith..
How to script a menu selection?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Re: How to script a menu selection?
You can either set the label property or the menuHistory property of the menu button, depending on whether or not something special happens when the user picks the 'All items' choice manually. Setting the label simply changes what is displayed; setting the menuHistory also triggers a menuPick event in the menu button.
HTH,
Jan Schenkel.
HTH,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Re: How to script a menu selection?
Thanks for the insight Jan - menuHistory did the trick!
Best,
Keith..

Best,
Keith..