Hello,
I got a option menu and when i click on certain choice in the option menu i want a certain value to be display
in a field.
PS: Can i know what is the livecode variable of option 1 value?
Can i know what i should type in the option menu to allow this function to work?
Thanks!
Option Menu (dropdown-list)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 346
- Joined: Mon Mar 01, 2010 7:13 pm
- Location: London, UK
- Contact:
Re: Option Menu (dropdown-list)
Have you looked at the menuPick message? That's what is triggered when someone picks an item from a menu.
Or if you want to respond to the selected menu item rather than simply put it into a field, something like this might help:
and so on. Complete the switch/case structure as required, of course.
Code: Select all
on menuPick pChosenItem -- in a pulldown menu
put pChosenItem into field 1
end menuPick
Code: Select all
on menuPick pChosenItem -- in a pulldown menu
switch pChosenItem
case "Jump"
put "How high?" into field 1
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist
Re: Option Menu (dropdown-list)
Thanks thatkeith,
I put what you told me to and it work perfectly!!
Thanks for your time and effort , appreciated!
I put what you told me to and it work perfectly!!
Thanks for your time and effort , appreciated!
-
- VIP Livecode Opensource Backer
- Posts: 9660
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Option Menu (dropdown-list)
What Keith said.
Now go to the dictionary and read about "menuHistory".
You will love it.
Craig Newman
Now go to the dictionary and read about "menuHistory".
You will love it.
Craig Newman