Skip to main content

TcxCustomScheduler.StoreToRegistry(string,Boolean,Boolean) Method

Saves the scheduler control’s layout scheme in the system registry.

Declaration

procedure StoreToRegistry(const AStorageName: string; AReCreate: Boolean = True; AStoreResources: Boolean = True);

Parameters

Name Type
AStorageName string
AReCreate Boolean
AStoreResources Boolean

Remarks

Use the StoreToRegistry method to persist the scheduler control’s layout in the registry. The AStorageName parameter specifies the HKEY_USERS’ subkey. The StoringName property, if it’s set, specifies a subkey of the AStorageName key. Under the key (specified by the StoringName property) the values describing the layout scheme are stored. If the StoringName property is not set the TcxScheduler.Name property value is used to specify the subkey of the AStorageName key.

The AReCreate parameter specifies whether the value entries under the AStorageName key will be overwritten. Set the AReCreate parameter to False to store multiple layouts under the single AStorageName suffix.

The AStoreResources parameter specifies whether to store the resources’ layout. Set the AStoreResources parameter to True to persist the resources’ layout.

To restore the layout saved in the registry use the RestoreFromRegistry method.

Note

this method saves the layout set by the user. If layout changes (that can also be performed by end-users through the user interface) are made programmatically they are also stored in the registry.

See Also