Sealed instantiable class
The class of menu items in command tables.
<object>
name:false-or(<string>). Default value: #f.
image:false-or(type-union(<string>, <image>)). Default value: #f
type:one-of(#"command", #"function", #"menu", #"divider").
value:<object>. Default value: #f.
options:<sequence>. Default value: #().
accelerator:false-or(<gesture>). Default value: #f.
mnemonic:false-or(<gesture>). Default value: #f.
duim-frames
duim-frames
The class of menu items in command tables. This class models menu items, tool bar items, accelerators, and mnemonics for a command table entry.
The type: init-keyword denotes what type of menu item has been created. This is either #"command", #"function", #"menu", or #"divider".
When type: is #"command", value: must be one of the following:
When all the required arguments for the command are supplied, clicking on an item in the menu invokes the command immediately. Otherwise, the user is prompted for the remaining required arguments.
When type: is #"function", value: must be a function having indefinite extent that, when called, returns a command. The function is called with two arguments:
When type: is #"menu", this indicates that a sub-menu is required, and value must be another command table or the name of another command table.
When type: is #"divider", some sort of a dividing line is displayed in the menu at that point. If a string is supplied using the options: init-keyword, it will be drawn as the divider instead of a line. If the look and feel provided by the underlying window system has no corresponding concept, #"divider" items may be ignored. When type: is #"divider", value: is ignored.
The accelerator: and mnemonic: init-keywords let you specify a keyboard accelerator and mnemonic for the menu item.
add-command-table-menu-item menu-item-accelerator menu-item-mnemonic menu-item-name menu-item-options menu-item-type menu-item-value