Multiple selection in option menu
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Multiple selection in option menu
I am new to Runtime Revolution.
Could someone please tell me, how to enable multiple selections in option menu?
Thank You.
Could someone please tell me, how to enable multiple selections in option menu?
Thank You.
hetman
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
If you mean adding a checkmark in front of an item as it is selected, that requires a pulldown menu button instead of an option menu button. See als the entry for the menu keyword in the Dictionary.
If you prefix each line with "!n" then you can toggle the items with this script:
(You can condense this somewhat, but it shows how to do this step-by-step)
HTH,
Jan Schenkel.
If you prefix each line with "!n" then you can toggle the items with this script:
Code: Select all
on menuPick
put the menuhistory of me into tLine
put the text of me into tText
put char 2 of line tLine of tText into tOldCheck
if tOldCheck is "n"
then put "c" into tNewCheck
else put "n" into tNewCheck
put tNewCheck into char 2 of line tLine of tText
set the text of me to tText
end menuPick
HTH,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Hello Janschenkel,
What I meant was; I have a directory search form on my card, states are displayed in an option menu. I want to allow the user to select more than one state in their search.
For example: Companies starting with a letter "A" in California and Florida.
Thank You for taking your time to reply to my post.
What I meant was; I have a directory search form on my card, states are displayed in an option menu. I want to allow the user to select more than one state in their search.
For example: Companies starting with a letter "A" in California and Florida.
Thank You for taking your time to reply to my post.
hetman