option

Specifies one of the menu types that can be used with the menuMode property.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.0 Security:

# Syntax

option

# Examples

set the menuMode of button "Style" to option

# Description

Use the option keyword to create a popup, option, or drop-down menu.

If the lookAndFeel property is set to "Appearance Manager" or "Macintosh", the option keyword designates a popup menu. If the lookAndFeel is "Motif", the option keyword designates an option menu. If the lookAndFeel is "Windows 95", the option keyword designates a drop-down list similar to a combo box.

Option menus are normally used to designate a state. Choosing an item from an option menu changes the menu's current setting, making this menu type suitable for situations in which the user must choose one of the predefined states.

# Tags

# See

- **keyword:** menu, popup - **glossary:** property, keyword, popup menu, combo box - **property:** lookAndFeel, menuMode