Programming with Reflection
RestoreDefaults
method
Syntax object.RestoreDefaults SettingsType
Restores all settings, or a group of related settings, to default values. For example, the following statement restores the toolbars to the default configuration:
Session.RestoreDefaults rcToolbar
SettingsType Argument type: Enumeration
The group of settings to restore. These values are equivalent to the various
kinds of partial settings files that Reflection supports. The values are:
rcSettings
Resets all settings and removes all macros. You must be disconnected to use this value. Note: This value is not available if you are using RestoreDefaults in a Reflection macro. It is available if you use this method on Reflection's command line, in a Reflection Basic script, or if you are using Automation to control Reflection from another application.
rcKeyMap
Resets settings relating to keyboard and mouse mapping.
rcToolbar
Resets settings relating to the toolbar.
rcColors
Resets settings relating to color configuration.
rcHotspots
Resets settings relating to hotspot configuration.
rcMenus
Resets settings relating to menu configuration.
rcProfile
Resets settings relating to the executability of Reflection commands (that is, all settings that can be disabled or enabled with SetCommandProfile, SetNumericProfile, or SetStringProfile).