IFormControl.SaveState

Syntax

SaveState(SectionName: String);

Parameters

SectionName. Name of the registry section in which the parameters of the toolbars, popup panels and form main menu should be loaded. The name should consist of one or more words and contains characters that are acceptable to use in the Windows registry.

Description

The SaveState method saves parameters of the form control elements in the registry.

Comments

The SectionName section is searched in the following registry branch: [HKEY_CURRENT_USER\Software\Foresight\Prognoz Platform\9.0\<Prognoz Platform 9 version>\Studio.INI\<repository name>\]. If the section is not present in this branch, it should be created.

The following data are saved in the registry:

NOTE. The Id unique identifier is taken into account when the position of the toolbars and popup panels is saved. When the panels are created dynamically, -1 value is set for this identifier by default. This fact should be taken into account on creating custom forms. If the unique identifier is not changed and is -1 when any toolbar or popup panel is saved, the exception is thrown.

See also:

IFormControl | IFormControl.LoadState | IControlBar.Id | IToolbar.Id