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.