ui.Form.loadTopMenu

Load the form topmenu.

Syntax

loadTopMenu(
   filename STRING )
  1. filename 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 filename without the "4tm" extension.

If the file does not exist in the current directory, it is searched in the directories defined in the DBPATH / FGLRESOURCEPATH environment variable.

If the form already contains a topmenu, it will be replaced by the new topmenu loaded by this method.