Implementing command-based menus

By default, an application uses form-based menus. To enable command-based menus, you must add the Tools_EnableCommandMenus() function to the Startup script for the application. Once this function has run, any form-based menus for the Main Menu form will be removed. You must then add menus using commands from the Menu bar function library.

Before you write the script to implement the menus, you must create the commands and command lists that you will use for them. Refer to Commands for information about creating commands and command lists.

Each menu is created by the MenuBar_AddMenu() function, which adds a command list to the menu bar. Once the menu is added, you can use the other functions from the Command function library and the Command list function library to add items to the menu.

Documentation Feedback