|
|
|
|
|
SftOptionsIO.Registry Property |
Defines the registry path used to store property settings.
Syntax
|
VB.NET |
RegistryPath = object.Registry As String |
||
|
VB |
RegistryPath = object.Registry As String |
||
|
C#.NET |
string RegistryPath = object.Registry; |
||
|
VC++ |
_bstr_t RegistryPath = object->Registry;
|
||
|
C |
HRESULT object->get_Registry(BSTR* RegistryPath); |
||
|
Delphi |
RegistryPath := object.Registry : WideString; |
||
|
VB.NET |
object.Registry = RegistryPath As String |
||
|
VB |
object.Registry = RegistryPath As String |
||
|
C#.NET |
string object.Registry = RegistryPath; |
||
|
VC++ |
_bstr_t object->Registry = RegistryPath;
|
||
|
C |
HRESULT object->put_Registry(BSTR RegistryPath); |
||
|
Delphi |
object.Registry := RegistryPath : WideString; |
||
object
A SftOptionsIO object.
RegistryPath
Defines the registry path used to store property settings (see below).
Comments
The Registry property defines the registry path used to store property settings.
The SftOptions.Load and SftOptions.Save methods are used to transfer options between the location defined by the SftOptionsIO.File or Registry property settings and the SftOptions control.
If the Registry property is set to a non-null string, the SftOptionsIO.File property is cleared.
RegistryPath must start with the prefix "USR:" or "MACH:", followed by the remainder of the registry key. USR: is equivalent to current user settings (HKEY_CURRENT_USER), MACH: is used for system settings (HKEY_LOCAL_MACHINE). No other prefix is allowed.
The SftOptionsIO.OptionValue property is used to retrieve (or set) an option value as it is currently saved in the location defined by the SftOptionsIO.File or Registry property settings. The OptionValue property value is identical to the SftOptsIO control's SftOptsIO.OptionValue property.
Example
SftOptions1.Add "", "Main", "Your first sample", entrySftOptionsTopic, "", "", Nothing, "", "", "", "" SftOptions1.Add "Main", "Rb1", "Radio Button 1", entrySftOptionsRadioButton, "", "", Nothing, "", "", "", "" SftOptions1.Add "Main", "Rb2", "Radio Button 2", entrySftOptionsRadioButton, "", "", Nothing, "", "", "", "" SftOptions1.Add "Main", "Rb3", "Radio Button 3", entrySftOptionsRadioButton, "", "", Nothing, "", "", "", "" SftOptions1.Add "", "Cb1", "Check Box Option", entrySftOptionsCheckBox, "", "", Nothing, "", "", "", "" SftOptions1.IO.Registry = "USR:Software\Softelvdm\TestData\FirstSample" SftOptions1.Load SftOptions1.InitializationComplete
See Also SftOptionsIO Object | Object Hierarchy