menuName

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the menuName of <button> to <stack>
Associationsbutton
Summary

Specifies the stack where the menu associated with a button is located.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
set the menuName of button "Popup" to "Items"
Values
NameTypeDescription
Value

The menuName of a button is a stack reference. By default, the menuName property of newly created buttons is set to empty.

RelatedKeyword: text, menu, button
Property: menuMode, menuHistory, menuMouseButton, menubar
Message: menuPick
Command: option
Object: stack, button
Glossary: property, stack menu, object reference
Description

Use the menuName property to associate a stack menu with a button.

When the button is clicked, the specified stack is opened as a menu. The appearance and behavior of the menu depend on the setting of the button's menuMode property.

If the menuName of a button is empty, its text is used as the contents of the menu.

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

Tagsmenus