Skip to main content

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

Loads the control‘s layout from the registry.

Declaration

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

Parameters

Name Type Description
AStorageName string

The name of the registry entry that stores settings. The procedure forms a registry path for the View information and adds the AStorageName value to the HKEY_CURRENT_USER key.

AChildrenCreating Boolean

Set this parameter to False to avoid creation of the control’s elements that are absent in the control, but information about their settings is stored in the registry.

AChildrenDeleting Boolean

Set this parameter to False to avoid deletion of existing elements whose information is absent in the registry.

ARestoreName string

The control’s name in the registry. The procedure uses the control’s name if you pass an empty string as the parameter value. You can omit AStorageName and use the ARestoreName value to apply settings of one control to another since its value corresponds to the ASaveName parameter value in the StoreToRegistry procedure.

Remarks

Call this procedure to apply appearance and behavior settings stored in the registry to the control.

You can restore the following settings for each View:

Chart View

Resource Sheet View

Timeline View

You can call the StoreToRegistry procedure to save the control’s settings to the registry.

See Also