ui.Form.loadActionDefaults

Load form action defaults.

Syntax

loadActionDefaults(
   path STRING )
  1. path is the name of the action defaults file without extension.

Usage

Load form specific action defaults at runtime with the loadActionDefaults() method.

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

Specify the file name without the "4ad" extension.

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

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

The loadActionDefaults() method of a form object is typically used in a generic form initializer function.