Note: This is a work in progress and will be formatting errors. 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. menuMessage
property returns empty
if the menu item has no associated message. doMenu
handler can override a menuMessage
. get the menuMessage of menuItem 1 of menu "Help"
if it is not empty then ...
set the menuMessage of menuItem "Print" of menu "File" to "myPrint"
set the menuMsg of menuItem 2 of menu 2 to "beep"
set the menuMsg of second menuItem of second menu to ¬
"set the visible of field 1 to not the visible of field 1"
menuItem text
menuItem posInteger
ordinal menuItem
For example: menuItem "New"
menuItem 2
second menuItem
menu text
menu posInteger
ordinal menu
For example: menu "File"
menu 2
second menu
calculateDebt
selectWholeLine
As in:
on calculateDebt
on selectWholeLine theLine, aContainer
Properties
Version 0.7b1 (March 24, 2022)