TdxCustomTileControl.RestoreFromRegistry(string,Boolean,Boolean,string) Method
Restores the tile control’s settings from the system registry.
Declaration
procedure RestoreFromRegistry(const AStorageName: string; AChildrenCreating: Boolean = False; AChildrenDeleting: Boolean = False; const ARestoreName: string = '');
Parameters
Name | Type |
---|---|
AStorageName | string |
AChildrenCreating | Boolean |
AChildrenDeleting | Boolean |
ARestoreName | string |
Remarks
The StoreTo~ and RestoreFrom~ methods allow you to persist tile control settings across multiple sessions. Call the StoreToRegistry method to save the tile control’s settings to the registry. Later, you can call the RestoreFromRegistry method to apply the stored settings to this or another tile control, restoring its state from the registry. Refer to the StoreToRegistry method description to learn about the settings that are persisted by these methods.
The AStorageName parameter specifies the full registry path from which the settings are restored. This path is formed by adding the AStorageName subkey to the HKEY_CURRENT_USER key.
The AChildrenCreating parameter determines whether non-existent tile elements (groups and items) present within the registry are created within the target tile control. On the contrary, the AChildrenDeleting parameter determines whether existing tile elements not present within the registry are deleted when restoring.
The ARestoreName parameter corresponds to the ASaveName parameter of the StoreToRegistry method.
For more information on the AChildrenCreating, AChildrenDeleting, and ARestoreName parameters, refer to the RestoreFromIniFile method description.