Add a Topmenu

A Topmenu can be added to a form.

Adding a Topmenu at the form level will make the Topmenu available only to that form. To create a Topmenu the can be used for all forms or as needed, create a 4tm file and add it to your project.

  1. Open form.
  2. Right-click the form object in the Structure view and select Add Top Menu from the context menu. The form structure now includes an Topmenu node and the Topmenu structure is added to the form design.
  3. Build your Topmenu:
    • Build your Topmenu directly in the form design by using the icons at the top of the form.
      The graphical Topmenu editor with a File menu being built with New, Open, and Save options.

      Figure 1. Topmenu editor

    • Or, right-click on the Topmenu node in the form structure view and add the elements of the Topmenu.
    Option Description
    Add Group Adds a TopMenuGroup, the text and parent node for the pull-down menu group.
    Add Command Adds a TopMenuCommand and specifies the action the menu option must be bound to.
    Note: The TopMenuCommands's name property must exactly match the name of an action specified in your BDL program.
    Add Separator Adds a TopMenuSeparator, an optional horizontal line to be displayed on the Topmenu, visually separating some of the commands.
  4. Set properties for each of the elements in the Topmenu.