menuMode

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the menuMode of <button> to <menuType>
Associationsbutton
Summary

Determines the appearance and behavior of menus associated with a button.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
set the menuMode of button "Edit" to pulldown
Values
NameTypeDescription
Value

The menuMode of a button is one of pullDown, cascade, popup, tabbed, comboBox, or option

RelatedProperty: menuLines, showBorder, menuName, menubar, borderWidth, lookAndFeel, titleWidth
Message: openField, menuPick
Keyword: file, button, text, popup
Glossary: popup menu, stack menu, appearance, field, cascading menu, line, property, command, tabbed button, behavior, handle, palette, message, Mac OS, OS X, control, dialog box, menu bar, menu, point, menu item, card
Function: menus, folders
Command: pulldown, option, group, popup
Object: stack, button
Description

Use the menuMode property to specify the appearance and behavior of the menu associated with a button.

Any button's contents can be viewed as a menu if the button's style property is set to "menu". The menuMode setting creates menus of different types from the button's contents. (You set the button's contents with the text property.)

You can also associate a stack with the button, using the menuName property. In this case, the contents of the stack's first card are displayed as a menu.

Regardless of the menuMode, a menuPick message is sent to the button when the user chooses a menu item from the menu.

If the button's style property is not set to "menu", the setting of its menuMode property has no effect.

Tagsmenus