Procedure SaveSkinPreference
Call: | Send SaveSkinPreference |
SaveSkinPreference is called to save skin preference information. Normally this is called during application shut down and it is only called when pbLoadPreference is true.
The method does the following:
1. It checks for a cApplication object. If not present, an error is raised.
2. It checks if the application object's pbPreserveEnvironment property is True. If not, it returns and does nothing.
3. It saves preference settings to the registry by calling the application object's WriteString method.
4. It saves psSkinFile under ../Preferences/SkinFile and psSkinIni under ../Preferences/SkinIni.
An application object must exist for this method to succeed. If you wish to use a skin object without an application object you will need to either set pbLoadPreference to false or override SaveSkinPreference so that it does not need an application object.
This can be called at any time to manually save a skin preference (even if pbLoadPreference is false).
LoadSkinPreference is used to load a saved skin preference.
LoadSkinPreference | pbLoadPreference | psSkinFile | psSkinIni