(cx-add-item menu item mnemonic hotkey test callback)
| Argument | Type | Description |
|---|---|---|
| menu | string | The name of the menu or submenu that you are adding the menu item to |
| item | string | The name of the item you are adding to the menu or submenu |
| mnemonic | char | When you hold Alt and press this button while the menu is already open this item will be run |
| hotkey | char | A char used with CTRL to open the menu item at any time, like the way CTRL-I opens the iteration dialog box (Linux Only) |
| test | function | The name of a function that must return #t for the GUI to open |
| callback | function | The name of the procedure, in Scheme, of the dialog box that will open when you click this menu item |
Note: Mnemonics and hotkeys are not typically used for menu items. Once an mnemonic is used to open a menu, you can use the arrow keys to navigate the
various submenus and menu items. Hotkeys are
only available in the Linux version of Fluent, so #f should be used in place of the hotkey parameter.
If you do not want to include a mnemonic for
your menu item, #f can be used in place of
this parameter as well.
Note: The test parameter is designed
for those who only want the menu item to be used if a specific condition
is met. In this case, since we want the GUI to open when the menu
item is clicked regardless of what else is happening in Fluent,
we can simply substitute #t for the name
of a function that would return #t.