ui.Form.loadToolBar

Load the form toolbar.

Syntax

loadToolBar(
   filename STRING )
  1. filename is the name of the toolbar file without extension.

Usage

Load a toolbar XML definition file into the form with the loadToolBar() method.

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

Specify the filename without the "4tb" 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 toolbar, it will be replaced by the new toolbar loaded from this method.