Add a Topmenu to a form

Adding a Topmenu at the form level will make the Topmenu available only to that form.

You can only add one top menu to the form. If a top menu exists, this procedure will not work.
Tip: 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 Form Structure view and select Add Top Menu from the context menu.
    The form structure now includes an TopMenu node. 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.

      Figure: Topmenu editor


      The graphical Topmenu editor with a File menu being built with New, Open, and Save options.
    • Or, right-click on the Topmenu node in the form structure view and add the elements of the Topmenu.
      Menu options Descripton
      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.