SkinPath - cCJSkinFramework

Returns the path where skin files are located

Type: Function

Return Data Type: String

Parameters: None

Return Value

Returns the path where skin files are located


Syntax
Function SkinPath Returns String

Call: Get SkinPath to StringVariable


Description

Skins should be placed in your workspace's programs directory. When psSkinFile is defined with a relative name, which is recommended, the file will be located relative to the default skin directory. SkinPath returns this default skin directory.

SkinPath is called, if needed, when a skin is applied. The ApplySkin method calls SkinQFile to convert psSkinFile into a fully qualified file. If psSkinFile is already qualified, LoadSkin is not called.

SkinPath can be augmented to change the default search path.

SkinPath determines where the programs directory is by calling the cApplication object. Therefore, an application object must be created and it must be created before the skin object.

As noted SkinPath requires an application object. If you wish to use the skin object without an application object you must either override SkinPath so that it does not refer to the application object, or you can set psSkinFile with a qualified name (in which case, SkinPath will not be called). You will also need to set pbLoadPreference to false or augment SaveSkinPreference and LoadSkinPreference so that they do not refer to the application object.

See Also

SkinQFile | psSkinFile | ApplySkin