ui.Interface.loadStyles

Load the presentation styles file.

Syntax

ui.Interface.loadStyles(
   filename STRING )
  1. filename is the name of presentation styles file, without the extension.

Usage

Use the ui.Interface.loadStyles() class method to load a .4st file defining presentation styles for all program forms.

If the interface already contains a set of presentation styles, it will be replaced by the new presentation styles loaded by this method.

Specify the presentation styles file name without the ".4st" extension.

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

Example

CALL ui.Interface.loadStyles("mystyles")

For a complete example, see Example 4: Loading custom resources.