CREATE MENU
Opens the Menu designer to create or modify a menu file.
Syntax
CREATE MENU [<filename> | ? | <filename skeleton>]
<filename> | ? | <filename skeleton>
The menu file to create or modify. The default extension is .MNU. The ? and <filename skeleton> options display a dialog box from which you can select a file. If you specify a file without including its path, dBASE Plus looks for the file in the current directory. If you issue CREATE MENU without an option, dBASE Plus creates an untitled menu file.
Description
Use CREATE MENU to open the Menu designer and create new or edit existing menus. The Menu designer automatically generates dBL program code that defines the contents of a menu, and stores this code in an editable source code file with a .MNU extension. To use the menu, assign the .MNU file name as the menuFile property of a form, or
DO <.MNU file> WITH <form reference>
to assign the menu to the form. The Menu designer always creates a menu named "root", so that when assigned to a form, it is referenced as form.root.
If you're creating a new menu file, CREATE MENU displays an empty design surface. If you specify an existing file, dBASE Plus asks whether you want to modify it. If you reply no, nothing further happens. Use the MODIFY MENU command to edit an existing file without being asked whether you want to modify it.