Assigns a menubar to a form.

Property of

Form

Description

Use menuFile to designate the menu that is displayed when the form has focus. If a form’s menuFile property is empty, a default menu is displayed when the form has focus.

Menubars created by the Menu designer are stored in .MNU files, which is the default extension for file names assigned to menuFile. Assigning a file to menuFile executes the named file with the form as the parameter. The default bootstrap code for a .MNU file creates a menu named root as a child of the form. The file assigned to menuFile is automatically loaded as a procedure file. The procedure file’s reference count is decremented when the form is released; if that was the last form that used that menu file, it is automatically unloaded.