Error getting tags :
error 404Error getting tags :
error 404 menuButton | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
menuButton
Basics
Expander triangle
Type
Function
Syntax
the menuButton menuButton()
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the name of the button that triggered display of a stack menu.
Examples

the menuButton
hide the menuButton

Additional Comments
Expander triangle

Use the menuButton function within a handler in a stack menu to determine which button opened the menu.

Value:

The menuButton function returns the name property of the button.

You create a stack menu by laying out the menu items as buttons in a stack window, then setting the menuName property of a button in another stack to the menu stack's name. Clicking the button displays the menu stack as a menu. If you use the same stack menu as the menuName of more than one button, the menuButton tells you which button the user clicked to display the stack menu.

For example, suppose you create a stack menu listing all your mailboxes, and display it when clicking both a "Delete" button and an "Open" button. Checking the menuButton from within the stack menu lets you respond appropriately to the user's choosing a mailbox, either deleting it or opening it.

User Comments
Expander triangle