Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
set [the] menuMessage of menuItem of menu to "messageName [parameterList]"
The menuMessage
property returns or sets the message sent to the current card when the user chooses a menu item from a menu.
The menuMessage
property returns empty
if the menu item has no associated message.
HyperCard’s default menu items have no associated messages sent to the current card unless they have been explicitly set with this property.
A doMenu
handler can override a menuMessage
.
An expression that evaluates to one of the following:
For example:
An expression that evaluates to one of the following:
For example:
Any text string, without quotation marks, that represents the name of the message handler you want to write:
As in:
A comma-separated list of local variable names.
The actual names don’t matter as long as they’re not the same as one of HyperCard’s reserved words. (That is, don’t use result
as a variable name.) For example: