ui.Form.loadToolBar
Load the form toolbar.
Syntax
loadToolBar(
path STRING )
- path 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 toolbar filename without the ".4tb" extension.
The resource file is searched in several directories in a given order, as described in the FGLRESOURCEPATH reference topic.
When loading a toolbar file, action defaults are automatically applied.
If the form already contains a toolbar (at the form level, not the global default toolbar), it will be replaced by the new toolbar loaded from this method.