Error getting tags :
error 404Error getting tags :
error 404 option | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
option
Basics
Expander triangle
Type
Command
Syntax
option stack
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Displays an option menu whose menu items are buttons in a stack.
Examples

option stack "Hot Text Items"
option stack (the menuStack of this image) -- custom property

Additional Comments
Expander triangle

Use the option command to display a stack menu as an option menu in situations where it is not possible to attach the menu to a button (for example, if the contents of the menu are not known in advance).

Parameters:

The stack is any stack reference. The stack's first card must contain a button for each menu item in the option menu.

Comments:

Use the option command in a mouseDown handler to display the menu:

on mouseDown

option stack "Help Menu"

end mouseDown

While the menu is displayed, the handler pauses.

The menu appears centered over the center of the control containing the handler. Choosing a menu item from the menu sends a mouseUp message to the stack.

User Comments
Expander triangle