Skip to main content

TcxCustomTreeList.RestoreFromRegistry(string,Boolean,Boolean,string) Method

Restores TreeList-specific information from the system registry.

Declaration

procedure RestoreFromRegistry(const AStorageName: string; AChildrenCreating: Boolean = False; AChildrenDeleting: Boolean = False; const ARestoreTreeListName: string = '');

Parameters

Name Type
AStorageName string
AChildrenCreating Boolean
AChildrenDeleting Boolean
ARestoreTreeListName string

Remarks

Use the RestoreFromRegistry method to restore TreeList-specific information from the system registry. Restoring the TreeList structure can be useful after changes have been applied to the TreeList control. Before restoring the TreeList structure, ensure that the control contains all columns connected to dataset fields at the time when data was saved to the registry key.

Stored structure information includes: instance names, band and column settings. Stored elements’ (bands and columns) settings specify the position and visibility of elements, captions, sort order, data binding, etc.

AStorageName specifies the HKEY_USERS’ subkey.

The AChildrenCreating parameter determines whether non-existent TreeList elements (bands and columns) present within the stream are created within the control. On the contrary, the AChildrenDeleting parameter determines whether existing TreeList elements not present within the stream file are deleted when restoring.

For information on the ARestoreTreeListName parameter, see the RestoreFromIniFile method description.

See Also