4.3.2. Usage

(cx-add-item menu item mnemonic hotkey test callback)

ArgumentTypeDescription
menustringThe name of the menu or submenu that you are adding the menu item to
itemstringThe name of the item you are adding to the menu or submenu
mnemoniccharWhen you hold Alt and press this button while the menu is already open this item will be run
hotkeycharA char used with CTRL to open the menu item at any time, like the way CTRL-I opens the iteration dialog box (Linux Only)
testfunctionThe name of a function that must return #t for the GUI to open
callbackfunctionThe 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.



Release 18.2 - © ANSYS, Inc. All rights reserved.