ui.Form.loadTopMenu
Load the form topmenu.
Syntax
loadTopMenu(
path STRING )
- 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 path without the "4tm
" extension.
The resource file is searched in several directories in a given order, as described in the FGLRESOURCEPATH reference topic.
If the form already contains a topmenu, it will be replaced by the new topmenu loaded by this method.