The dictionary states that this property only applies to option and combo styles, but in fact, of the four native styles, it applies only for combos.
The only way I can figure out how to limit the number of lines in the other three styles is to initially set a custom property, "the fullList", containing the full contents of the button, and then place this in the button script:
Code: Select all
on mouseDown if the optionKey is down then put line 1 to 5 of the fullList of me into me else put the fullList of me into me end mouseDown
This is not the only place where the properties of certain menuButton styles are different from others.
But is the dictionary wrong about option menus, or, as usual, am I?