menuLines

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the menuLines of <button> to <number>
Associationsbutton
Summary

Specifies the number of visible lines in a drop-down list menu belonging to a button.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the menuLines of button "Options" to 10
Values
NameTypeDescription
Value

The menuLines of a button is a positive integer. By default, the menuLines property of newly created buttons is set to 5.

RelatedKeyword: integer, menu, button
Property: menuMode
Command: option
Function: menus
Glossary: property, Unix, Windows, combo box
Object: button
Description

Use the menuLines property to control the appearance of combo box or option menus.

When a menu containing a drop-down list opens, it displays a fixed number of lines (with a scrollbar to access any additional lines). The menuLines property specifies how many lines are displayed at a time.

This property affects only buttons whose menuMode property is set to "option" (on Unix and Windows systems only) or "comboBox". Other menu types are not affected by the setting of the menuLines.

If the button's style property is not menu, the setting of the menuLines property has no effect.

Tagsmenus