ui.Form.loadTopMenu

Load the form topmenu.

Syntax

loadTopMenu(
   path STRING )
  1. path is the name of the topmenu file without extension.

Usage

Load a topmenu XML definition file into the form with the loadTopMenu() method.

The loadTopMenu() method is commonly used in the form initialization function.

Specify the topmenu filename without the .4tm extension.

The resource file is searched in several directories in a given order, as described in the FGLRESOURCEPATH reference topic.

When loading a topmenu file, action defaults are automatically applied.

If the form already contains a topmenu (at the form level, not the global default topmenu), it will be replaced by the new topmenu loaded by this method.