FutureBasic Logo

<<    Index    >> FutureBasic

menu   statement



Syntax
menu menuIndex, itemIndex, enabled, title, keyEquivalent, keyEquivalentModifier

Description
Use this statement to do any of the following: Parameters
Parameter
Description
menuIndex Menu indexes in the range 0 - 100 are reserved for the menubar menus.
Menus with indexes greater than 100 are stored for later use in hierarchical menus, popupbutton menus, etc.
itemIndex The index of the menuitem. When creating or altering the menu itself, omit this parameter.
enabled A boolean value which enables or disables the menuitem.
title The title of the menu or menuitem.
keyEquivalent The keyEquivalent of the menuitem.
keyEquivalentModifier Modifier masks can be combined using the '+' character:
NSAlphaShiftKeyMask
NSShiftKeyMask
NSControlKeyMask
NSAlternateKeyMask
NSCommandKeyMask
NSNumericPadKeyMask
NSHelpKeyMask
NSFunctionKeyMask

 
See also
on menu
 

Apple documentation
NSMenu
NSMenuItem