Modify the Topmenu

Create an Genero Topmenu file (.4tm) to modify the Topmenu of the generated application.

The Topmenu is initially defined by a default Genero Topmenu file (dbapp.4tm) located in the styles sub-directory of the template set directory.

For details regarding the syntax of a Genero Topmenu file, see the Genero Business Development Language User Guide.

  1. Select File > New.
    The Select an item dialog opens.
  2. Select Genero BAM Desktop.
  3. Under the Resources section, select Top Menu (.4tm).
    An untitled Genero Topmenu file with a .4tm extension displays in the central workspace. This file is based on the default Topmenu file for the selected template set.
  4. Modify the Topmenu file by adding, modifying, or deleting actions.
  5. Save the modified file to your project.
    The default name expected for the Topmenu file is dbapp.4tm. Saving your file using this name ensures that Genero Studio will use your file at runtime, replacing the template default. If you save your file using a different name, you must find the BLOCK in the generated code that calls the ui.Interface.loadTopMenu() method and change the parameter name to the name of your new file.