Preconfiguration "Editor of key values in all sections of the selected "INI" file."
The editor allows editing key values in all sections of the selected "INI" file in runtime.
This preconfiguration can be activated when creating a new object (e.g. by
"New object ..." in the context menu of the object or by pressing the
Insert key after selecting the object).
This preconfiguration is included in the
"/ Panels (PmaPanel) / Others examples" group.
This preconfiguration can be created in the
PmaFolder,
PmaRoot,
PmaPanel,
PmaWorkspace or
PmaPrototype object.
The preconfiguration is created including the panel (object of the
PmaPanel type) is functional also as
Web panel.
The preconfiguration creates an object of the
PmaPanel type named
"IniFileEdit".
The panel contains the
PmgForm object that is configured as INI file editor in the
onFormLoad event.
The panel has the following methods:
LoadSections - for loading all sections
LoadKeys - for loading all keys and values of the selected section
SaveValueToKey - for saving the changed key value in the selected section to a file
The panel contains the
PmgForm object. Script in the
PmgForm.onFormLoad event creates two
PmfTable objects. The left one shows all the sections of the file. The right table displays all keys and values of the selected section. The key values in the table can be edited and the changes are immediately saved to the file.
These configurators can be set before the preconfiguration is created:
The name of created object | Name of the object created in the Pma object tree.
The maximum name length is 30 characters.
This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and first character must not be a number.
Default: "FileExplorer" |
Full path to the "INI" file | |
|
Enable as Web component | Specifies whether this object has to be registered as a Web server component
After the preconfiguration is created, the "PmaPanel > Web server > Enable as Web component" configurator will be set to this value. |
---|