Previous Topic: NEW_WINDOWSPATHNext Topic: PreProcess


Option

Option

Creates an option for displaying on the settings pages. It also associates the Store and Apply functions for the option. If the user chooses an option, then the functions associated to the option are invoked by the interpreter. The statement to display can specify a hierarchy by using slashes. For example, the option Microsoft Word\\Toolbar displays Microsoft Word on one line and Toolbar appears indented on the next line in the tree view of options.

First parameter:

The Option path (string value)

Second parameter:

The Store function name (string value)

Third parameter:

The Apply function name (string value)

Fourth parameter:

See Example: Create Localized Settings Trees.

Usage:
Option( <option path>, [Store function name], [Apply function name], [LanguageIndependentPath]);
Examples:
Option ( "Microsoft Word\\Toolbar");
Option( "MicrosoftWord\\Toolbar\\Tooltips", "StoreTooltips", "ApplyTooltips", "msword\\toolbar\\tooltips");

If the item is selected by the user, then the Store and Apply functions are called by the interpreter. If an option is selected by the user, the option's parent functions are also invoked.