Does anyone know what is the syntax for putting a list of menu items into the menuitem of a combo box button?
cheers, Glenn
Putting a list into menuitems of a combo box button
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 137
- Joined: Thu Jul 24, 2008 11:22 pm
From your description I'd assume you want something like this:
The text of a menu button is the list of choices. the label of that menu button is the current choice. However, some styles of menu buttons do not have a current selection, so they lack the label part.
Also note that setting the choice to something is often a bit more complicated.
Code: Select all
on mouseUp
put "choice1, choice2,choice3" into theList
replace comma with return in theList
set the text of button "name of combo box" to theList
end mouseUp
Also note that setting the choice to something is often a bit more complicated.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode