Page 1 of 1

Putting a list into menuitems of a combo box button

Posted: Sun Jul 27, 2008 9:34 pm
by Glenn Boyce
Does anyone know what is the syntax for putting a list of menu items into the menuitem of a combo box button?
cheers, Glenn

Posted: Sun Jul 27, 2008 10:31 pm
by BvG
From your description I'd assume you want something like this:

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
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.