pbLoadPreference - cCJSkinFramework
Determines if the current skin should be saved and restored as a preference
Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None
Syntax
Property Boolean pbLoadPreference
| Access Type | Syntax |
|---|---|
| Read Access: | Get pbLoadPreference to BooleanVariable |
| Write Access: | Set pbLoadPreference to BooleanVariable/Value |
Description
pbLoadPreference determines if the current skin should be saved and restored as a preference.
The default value is false.
You might wish to set this property true if you are supporting some kind of dynamic assignment of skins. In such a case, the selected skin can be saved when the application closes and restored when the application is loaded. Skins are saved by calling the SaveSkinPreference method and are restored by calling the LoadSkinPreference method. Both of these methods rely on the cApplication object, which must be created before your skin object. Note that the application object's pbPreserveEnvironment property must be set true for skin preferences to be saved and loaded.