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, the interpreter invokes the associated functions. 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 options tree view.

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 user selects the item, then the interpreter calls the Store and Apply functions. If the user selects an option, the parent functions of the option are also invoked.